Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 74826 invoked from network); 27 Sep 2010 02:29:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Sep 2010 02:29:05 -0000 Received: (qmail 20581 invoked by uid 500); 27 Sep 2010 02:29:05 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 20543 invoked by uid 500); 27 Sep 2010 02:29:05 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 20536 invoked by uid 99); 27 Sep 2010 02:29:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 02:29:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 02:28:59 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8R2SbJi021925 for ; Mon, 27 Sep 2010 02:28:37 GMT Message-ID: <1647971.411471285554517338.JavaMail.jira@thor> Date: Sun, 26 Sep 2010 22:28:37 -0400 (EDT) From: "Regis Xu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6657) A batch of testcases to increase rmi module test coverage In-Reply-To: <14614491.405381285484072938.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915095#action_12915095 ] Regis Xu commented on HARMONY-6657: ----------------------------------- some comments for test cases: + public void testGetSystem(){ + + try { + ActivationSystem as = new MyActivationSystem(); + ActivationGroupID agid = new ActivationGroupID(as); + + assertSame(as, agid.getSystem()); + } catch (ActivationException e) { + fail(); + } + } actually you don't need to catch the exception, just let it go, junit will handle it correctly. + assertTrue(!vmid.toString().equals(vmid2.toString())); Why not assertFalse? + 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: rmi_testcases.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.