[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1400) Create Tests for SerializableMethod

jaikiran pai (JIRA) jira-events at lists.jboss.org
Fri Jun 6 11:18:22 EDT 2008


    [ http://jira.jboss.com/jira/browse/EJBTHREE-1400?page=comments#action_12415884 ] 
            
jaikiran pai commented on EJBTHREE-1400:
----------------------------------------

Andrew,

I had attached the patch containing the test cases. In all there are 14 tests. I have run this with both Sun Java 1.5 and Sun Java 1.6. 

Results on Sun Java 1.6:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jboss.ejb3.test.proxy.lang.unit.SerializableMethodTestCase
Tests run: 14, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.609 sec <<< FAILURE!

Results :

Tests in error:
  testToMethodWithoutClassloaderAndInvolvingGenerics(org.jboss.ejb3.test.proxy.lang.unit.SerializableMethodTestCase)
  testToMethodWithoutClassloaderAndInvolvingPrimitiveParams(org.jboss.ejb3.test.proxy.lang.unit.SerializableMethodTestCase)
  testToMethodWithoutClassloaderAndInvolvingArrayParams(org.jboss.ejb3.test.proxy.lang.unit.SerializableMethodTestCase)

Tests run: 14, Failures: 0, Errors: 3, Skipped: 0


Results on Sun Java 1.5 :

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jboss.ejb3.test.proxy.lang.unit.SerializableMethodTestCase
Tests run: 14, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.75 sec <<< FAILURE!

Results :

Tests in error:
  testToMethodWithoutClassloaderAndInvolvingGenerics(org.jboss.ejb3.test.proxy.lang.unit.SerializableMethodTestCase)
  testToMethodWithoutClassloaderAndInvolvingPrimitiveParams(org.jboss.ejb3.test.proxy.lang.unit.SerializableMethodTestCase)

Tests run: 14, Failures: 0, Errors: 2, Skipped: 0


As can be seen there are 3 test failing with errors on Java 1.6 and 2 tests failing with errors on Java 1.5. All these failing test are related to the toMethod( ) and are failing at the loadClass( ) call  in that method. Have attached the appropriate logs both for Java 1.5 and Java 1.6.






 

> Create Tests for SerializableMethod
> -----------------------------------
>
>                 Key: EJBTHREE-1400
>                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-1400
>             Project: EJB 3.0
>          Issue Type: Task
>          Components: proxy
>            Reporter: Andrew Lee Rubinger
>         Assigned To: Andrew Lee Rubinger
>             Fix For: AS 5.0.0.CR2
>
>
> Currently handled by community contributor Jaikiran Pai. 
> Need tests for the following:
> * .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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list