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
"[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
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
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
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
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
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
|
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
__