[jboss-user] [JBoss Seam] - Re: Inject a mocked component for integration testing

2007-06-02 Thread lowecg2004
You're welcome. As a general solution to invoking e-mails from test code, I use this: import java.io.IOException; | | import javax.faces.context.FacesContext; | | import org.jboss.seam.InterceptionType; | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Install;

[jboss-user] [JBoss Seam] - Re: Inject a mocked component for integration testing

2007-05-17 Thread denis.diggin
Works. Many thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046488#4046488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046488 ___ jboss-user mailing list jboss-user

[jboss-user] [JBoss Seam] - Re: Inject a mocked component for integration testing

2007-05-17 Thread lowecg2004
Add your mock class to your test package and annotate it with the following: @Install(precedence=MOCK) More info in Seam reference section 26.2.1. "Using mocks in integration tests". View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046464#4046464 Reply to the