1 17 package org.apache.geronimo.j2ee.management; 18 19 import org.apache.geronimo.management.J2EEDomain; 20 21 24 public class DomainTest extends Abstract77Test { 25 private J2EEDomain domain; 26 27 public void testStandardInterface() throws Exception { 28 assertEquals(DOMAIN_DATA.getAbstractName().getObjectName().getCanonicalName(), domain.getObjectName()); 29 assertObjectNamesEqual(new String []{SERVER_DATA.getAbstractName().getObjectName().getCanonicalName()}, domain.getServers()); 30 } 31 32 public void testStandardAttributes() throws Exception { 33 assertEquals(DOMAIN_DATA.getAbstractName().getObjectName().getCanonicalName(), kernel.getAttribute(DOMAIN_DATA.getAbstractName(), "objectName")); 34 assertObjectNamesEqual(new String []{SERVER_DATA.getAbstractName().getObjectName().getCanonicalName()}, (String []) kernel.getAttribute(DOMAIN_DATA.getAbstractName(), "servers")); 35 } 36 37 protected void setUp() throws Exception { 38 super.setUp(); 39 domain = (J2EEDomain) kernel.getGBean(DOMAIN_DATA.getAbstractName()); 40 } 41 } 42 | Popular Tags |