On Aug 16, 2006, at 3:44 PM, Mohammed Nour wrote:
On 8/17/06, David Blevins <[EMAIL PROTECTED]> wrote:
I'd say that what we should do is work together on a couple of these
and get the initiative jump started that way. The Stateless and
Stateful tests are identical in function and form, they just use
different beans. So maybe a smart way to start is that I could do
say "OPENEJB-145 iTest: StatelessRemoteJndiTests" and detail the
steps and you could do the Stateful equivalent of that test,
"OPENEJB-171 iTest: StatefulRemoteJndiTests"
Sounds good as a simple start step towards the big ones :)
I did OPENEJB-145 all in one commit so that you could examine it and
use it as a template for doing OPENEJB-171. Here is that commit:
http://fisheye.codehaus.org/changelog/openejb/?cs=2864
Here are the basic steps i did:
- Copy http://fisheye.codehaus.org/browse/openejb/trunk/openejb3/
openejb-itests/src/main/java/org/openejb/test/stateless/
StatelessJndiTests.java
- Name the new test org/openejb/test/stateless/
StatelessPojoRemoteJndiTests.java
- Edit the JNDI name to "client/tests/stateless/
BasicStatelessPojoHome"
- Edit http://fisheye.codehaus.org/browse/openejb/trunk/openejb3/
openejb-itests/src/main/java/org/openejb/test/stateless/
StatelessTestSuite.java
- Add a new entry for "suite.addTest(new
StatelessPojoRemoteJndiTests());"
- Copy http://fisheye.codehaus.org/browse/openejb/trunk/openejb3/
openejb-itests/src/main/java/org/openejb/test/stateless/
BasicStatelessBean.java
- Name the new class
org.openejb.test.stateless.BasicStatelessPojoBean
- Delete the part "implements javax.ejb.SessionBean ..."
- Delete any methods that start with "ejb"
- Edit http://fisheye.codehaus.org/browse/openejb/trunk/openejb3/
openejb-itests/src/main/resources/META-INF/ejb-jar.xml
- Copy the session bean called "BasicStatelessBean" to a new
session bean entry called "BasicStatelessPojoBean"
- Edit the "ejb-class" value of "BasicStatelessPojoBean" to be
org.openejb.test.stateless.BasicStatelessPojoBean
- Edit http://fisheye.codehaus.org/browse/openejb/trunk/openejb3/
openejb-itests/src/main/resources/META-INF/openejb-jar.xml
- Copy the deployment entry called "BasicStatelessBean" to a new
entry called "BasicStatelessPojoBean"
- Edit the "deployment-id" attribute to "client/tests/stateless/
BasicStatelessPojoHome"
- Edit http://fisheye.codehaus.org/browse/openejb/trunk/openejb3/
container/openejb-core/src/main/resources/META-INF/org.openejb/
spring.xml
- Copy the element "<entry key="client/tests/stateless/
BasicStatelessHome">"
- Edit the "key" attribute to "client/tests/stateless/
BasicStatelessPojoHome"
- Edit the "id" attribute to "client/tests/stateless/
BasicStatelessPojoHome" of "o:statelessDeployment"
- Edit the "beanClass" attribute to
"org.openejb.test.stateless.BasicStatelessPojoBean"
It'll be the same steps for you, but with "Stateful" instead of
"Stateless" in all the class and package names, etc. Most the other
tests will follow a similar "copy/modify" rhythm, so this will be a
good exercise. It'll be a good experience to run through it and see
the test compile and pass.
If you run into any troubles, definitely hit the list up for info.
Thanks,
David