[jboss-dev-forums] [Design of EJB 3.0] - Instructions for SerializableMethod Unit Tests

ALRubinger do-not-reply at jboss.com
Wed Jun 4 05:10:19 EDT 2008


Jaikiran:

Within the EJB3 Proxy Component is a currently untested class, "org.jboss.ejb3.proxy.lang.SerializableMethod".  We need tests to ensure that:

* .equals() returns true if the name, className, returnType, and each of the argumentTypes are equal by value.
* .hashCode() follows the contract of .hashCode(), ie: if two objects are equal by value, they must have the same hashCode
* java.lang.reflect.Method > SerializableMethod > Method roundtrip returns with input equal by value to output given the same ClassLoader

The project itself follows the standard Maven2 layout, and you should be able to follow the template (naming conventions, etc) of the other tests.  I'll send the JBoss Eclipse formatting and code templates for you to import.

To Download and Build:

svn co https://svn.jboss.org/repos/jbossas/projects/ejb3/trunk
  | cd trunk
  | mvn clean install

>From there, you can easily "cd" into the "proxy" component and issue "mvn clean install" to run the tests, see the Maven Surefire Plugin documentation for information on attaching a debugger, running only one test, etc.

Once you've completed, if you attach a patch ("svn diff > filename.patch") to the JIRA below; I'll review and commit it.

http://jira.jboss.com/jira/browse/EJBTHREE-1400

Thanks for your interest; let's use this Thread for any questions so we keep development concerns truly open to the community. :)

S,
ALR

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155598#4155598

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155598



More information about the jboss-dev-forums mailing list