9 Replies Latest reply on Jun 9, 2008 4:29 AM by jaikiran pai

    Instructions for SerializableMethod Unit Tests

    Andrew Rubinger Master

      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