harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Chou (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6657) A batch of testcases to increase rmi module test coverage
Date Tue, 28 Sep 2010 07:23:33 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Chou updated HARMONY-6657:
-------------------------------

    Attachment: exceptionclassTests.patch
                activationGroupIDTest.patch
                dgcclassesTests.patch

I modified the testcases according to the comment, and split the patch into small patches.

exceptionclassTests.patch includes some exception classes;
dgcclassesTests.patch includes tests for java.rmi.dgc.*;
activationGroupIDTest.patch tests ActivationGroupID.
rmiserverpkgTests.patch includes testcases for java.rmi.server.* classes.



About the catch in following test, it is necessary, because the result of isUnique method
depends on the behavior of InetAddress.getLocalHost() .
"
+ public void testIsUnique(){
+ VMID vmid = new VMID();
+ boolean unique = true;
+ try {
+ InetAddress.getLocalHost();
+ } catch (Exception ex) {
+ unique = false;
+ }
+
+ assertTrue(unique == vmid.isUnique());
+ }
the catch is really necessary? 
"

> A batch of testcases to increase rmi module test coverage
> ---------------------------------------------------------
>
>                 Key: HARMONY-6657
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6657
>             Project: Harmony
>          Issue Type: Test
>          Components: Classlib
>         Environment: x86-32, windows xp and linux.
>            Reporter: Sean Chou
>            Priority: Trivial
>         Attachments: activationGroupIDTest.patch, dgcclassesTests.patch, exceptionclassTests.patch,
rmi_testcases.patch, rmiserverpkgTests.patch
>
>
> This is a batch of testcase for rmi module to increase its method coverage. This batch
of testcases are simple and don't contain multiprocess communication like rmid or rmiregistry.
 These testcases are tested under windowsxp and linux on x86_32.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message