[jboss-user] [JBoss Seam] - Re: Seam Email and Embeddedable EJB3 for testing

2007-08-21 Thread [EMAIL PROTECTED]
http://jira.jboss.com/jira/browse/JBSEAM-1833 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076217#4076217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076217 ___ jboss-use

[jboss-user] [JBoss Seam] - Re: Seam Email and Embeddedable EJB3 for testing

2007-08-21 Thread obfuscator
"[EMAIL PROTECTED]" wrote : You can't correctly integration test Seam Mail at the moment, because, as Chris says, there is no way to redirect the rendered output to mock object. I think to do this properly we would need to mock out the JavaMail session and allow you to redirect where the render

[jboss-user] [JBoss Seam] - Re: Seam Email and Embeddedable EJB3 for testing

2007-08-20 Thread [EMAIL PROTECTED]
You can't correctly integration test Seam Mail at the moment, because, as Chris says, there is no way to redirect the rendered output to mock object. I think to do this properly we would need to mock out the JavaMail session and allow you to redirect where the rendererd emails were sent (i.e. t

[jboss-user] [JBoss Seam] - Re: Seam Email and Embeddedable EJB3 for testing

2007-08-17 Thread lowecg2004
If memory serves, I don't think you can completely send an e-mail since the Facelet renderer is not created under the mock environment. Try out my mock object suggestion at the end of this post: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=108860 I hope this helps. Chris. View th

[jboss-user] [JBoss Seam] - Re: Seam Email and Embeddedable EJB3 for testing

2007-08-16 Thread RefuX
I'm writing a similar integration test. However I'm running into a different issue (user error no doubt!). Using Seam 1.2.1GA. So I have a MailService component that has a line like this | @In(create = true) | private Renderer renderer; | In my test I'm doing this: |ne

[jboss-user] [JBoss Seam] - Re: Seam Email and Embeddedable EJB3 for testing

2007-02-12 Thread [EMAIL PROTECTED]
OK, I committed a mock response writer to CVS for you guys. Caveats: (1) I did not test this at all, please let me know if I screwed up (2) It does not actually *do* anything ... if you wanted to get an actual email out the end, then I need you guys to contribute a patch to MockResponseWriter th

[jboss-user] [JBoss Seam] - Re: Seam Email and Embeddedable EJB3 for testing

2007-02-12 Thread bsmithjj
I made sure facelets is in my testing classpath. Now it looks like MockRenderKit doesn't want to play along... | 12:13:08,170 ERROR com.evergreen.accesscontrol.impl.MailSenderBean.(error:119) - java.lang.UnsupportedOperationException | | java.lang.UnsupportedOperationException |

[jboss-user] [JBoss Seam] - Re: Seam Email and Embeddedable EJB3 for testing

2007-02-12 Thread [EMAIL PROTECTED]
You would need to make sure you have facelets in your classpath. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015046#4015046 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015046 __