[jboss-dev-forums] [Design of EJB 3.0] - Re: Instructions for SerializableMethod Unit Tests
jaikiran
do-not-reply at jboss.com
Thu Jun 5 12:38:14 EDT 2008
Andrew,
Thanks for your efforts in guiding me :)
I have checked out EJB3 project and installed Maven 2.0.9. I am new to Maven (have been using Ant) and it's going to take some time to start understanding how it works. But so far, based on the wiki that you pointed me to, the maven configuration has been smooth.
Right now, i am just going through the code/tests to see how they are structured. I have some basic questions regarding this:
1) There's a "testsuite" containing the testcases. Based on what i see, the test cases are written in package named org.jboss.ejb3.test.[XXX].unit. Then there is also a package named org.jboss.ejb3.test.[XXX] which probably contains the required resources for the corresponding test cases (ex: If an testcase depends on a bean, then the bean implementation goes in this package). Is this correct?
2) I also see test cases under each component, example: the proxy component has the src/test/java/org.jboss.ejb3.test.proxy.remoteaccess.unit.RemoteAccessTestCase testcase. How are these test cases different from the ones in the "testsuite"?
3) Some of the testcases extend the JUnit TestCase class where as some of them use annotations @Test. Is there any convention to be followed while writing new testcases?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156048#4156048
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156048
More information about the jboss-dev-forums
mailing list