Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 4089 invoked from network); 13 Jul 2007 05:26:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2007 05:26:25 -0000 Received: (qmail 26790 invoked by uid 500); 13 Jul 2007 05:26:28 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 26704 invoked by uid 500); 13 Jul 2007 05:26:28 -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 26688 invoked by uid 99); 13 Jul 2007 05:26:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 22:26:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 22:26:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AC9D471420C for ; Thu, 12 Jul 2007 22:26:04 -0700 (PDT) Message-ID: <13658724.1184304364703.JavaMail.jira@brutus> Date: Thu, 12 Jul 2007 22:26:04 -0700 (PDT) From: "Vera Petrashkova (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-4455) [buildtest][func] Testcase testIsActive in StructureTest is not correct MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [buildtest][func] Testcase testIsActive in StructureTest is not correct ----------------------------------------------------------------------- Key: HARMONY-4455 URL: https://issues.apache.org/jira/browse/HARMONY-4455 Project: Harmony Issue Type: Bug Components: build - test - ci Reporter: Vera Petrashkova Priority: Minor Functional test functional/org/apache/harmony/test/func/api/javax/management/relation/StructureTest.xml contains incorrect testcase testIsActive According to J2SE API specifications of javax.management.relation.RelationService classs: public void isActive() throws RelationServiceNotRegisteredException Checks if the Relation Service is active. Current condition is that the Relation Service must be registered in the MBean Server Specified by: isActive in interface RelationServiceMBean Throws: RelationServiceNotRegisteredException - if it is not registered The specification does not say that RelationService unregistered in the MBean Server becomes inactive and isActive mthod must throw RelationServiceNotRegisteredException. But the test case testIsActive expects that isActive() method will throw RelationServiceNotRegisteredException if RelationService was registered and then unregistered in MBean Server See source code StructureTest.java ------------- public Result testIsActive() throws Exception { MBeanServer mBeanServer = MBeanServerFactory.createMBeanServer(); RelationService relationService = new RelationService(true); ObjectName relationServiceName = new ObjectName( "mBeanServer:type=RelationService,name=rs"); mBeanServer.registerMBean(relationService, relationServiceName); mBeanServer.unregisterMBean(relationServiceName); try { relationService.isActive(); return failed("isActive method incorrect"); } catch (RelationServiceNotRegisteredException e) { return passed(); } } -------------- As the result this test fails on RI and Harmony because RelationServiceNotRegisteredException is not thrown. This test should be redesigned or removed -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.