geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r396598 - /geronimo/branches/1.1/modules/j2ee/src/test/org/apache/geronimo/j2ee/management/DomainTest.java
Date Mon, 24 Apr 2006 16:19:25 GMT
Author: djencks
Date: Mon Apr 24 09:18:47 2006
New Revision: 396598

URL: http://svn.apache.org/viewcvs?rev=396598&view=rev
Log:
fix broken test

Modified:
    geronimo/branches/1.1/modules/j2ee/src/test/org/apache/geronimo/j2ee/management/DomainTest.java

Modified: geronimo/branches/1.1/modules/j2ee/src/test/org/apache/geronimo/j2ee/management/DomainTest.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.1/modules/j2ee/src/test/org/apache/geronimo/j2ee/management/DomainTest.java?rev=396598&r1=396597&r2=396598&view=diff
==============================================================================
--- geronimo/branches/1.1/modules/j2ee/src/test/org/apache/geronimo/j2ee/management/DomainTest.java
(original)
+++ geronimo/branches/1.1/modules/j2ee/src/test/org/apache/geronimo/j2ee/management/DomainTest.java
Mon Apr 24 09:18:47 2006
@@ -19,19 +19,19 @@
 import org.apache.geronimo.management.J2EEDomain;
 
 /**
- * @version $Rev: 383682 $ $Date$
+ * @version $Rev$ $Date$
  */
 public class DomainTest extends Abstract77Test {
     private J2EEDomain domain;
 
     public void testStandardInterface() throws Exception {
-        assertEquals(DOMAIN_DATA.getAbstractName().getObjectName().toString(), domain.getObjectName());
-        assertObjectNamesEqual(new String[]{SERVER_DATA.getAbstractName().getObjectName().toString()},
domain.getServers());
+        assertEquals(DOMAIN_DATA.getAbstractName().getObjectName().getCanonicalName(), domain.getObjectName());
+        assertObjectNamesEqual(new String[]{SERVER_DATA.getAbstractName().getObjectName().getCanonicalName()},
domain.getServers());
     }
 
     public void testStandardAttributes() throws Exception {
-        assertEquals(DOMAIN_DATA.getAbstractName().getObjectName().toString(), kernel.getAttribute(DOMAIN_DATA.getAbstractName(),
"objectName"));
-        assertObjectNamesEqual(new String[]{SERVER_DATA.getAbstractName().getObjectName().toString()},
(String[]) kernel.getAttribute(DOMAIN_DATA.getAbstractName(), "servers"));
+        assertEquals(DOMAIN_DATA.getAbstractName().getObjectName().getCanonicalName(), kernel.getAttribute(DOMAIN_DATA.getAbstractName(),
"objectName"));
+        assertObjectNamesEqual(new String[]{SERVER_DATA.getAbstractName().getObjectName().getCanonicalName()},
(String[]) kernel.getAttribute(DOMAIN_DATA.getAbstractName(), "servers"));
     }
 
     protected void setUp() throws Exception {



Mime
View raw message