[jboss-user] [JBoss Seam] - Re: UnitTesting Components

2007-06-22 Thread stu2
Could you post example code? If you're extending SeamTest the mock contexts are setup for you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4056858#4056858 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4056858

[jboss-user] [JBoss Seam] - Re: UnitTesting Components

2007-06-22 Thread KnisterPeter
Ok, I've had no idea that this was the case. I have to port SeamTest before testing again, since I'm using JUnit4 instead of TestNG. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4056865#4056865 Reply to the post :

[jboss-user] [JBoss Seam] - Re: UnitTesting Components

2007-06-22 Thread KnisterPeter
Ok, below is the JUnit4 version of SeamTest. If there is interest it could be included into seam. There are only small changes which could be refactored into a subclass so both TestNG and JUnit4 share a common base class. In details the differences are the init and shutdown methods annotated

[jboss-user] [JBoss Seam] - Re: UnitTesting Components

2007-06-22 Thread stu2
No, I haven't seen examples of the MOCK precendence. But think I remember Gavin describing that it would always be used if it was present. That is, it should be in your classpath during tests, but not when you run it. Seam would always install the component marked with MOCK precedence if it