1 package org.apache.geronimo.client.builder; 2 3 import javax.management.ObjectName ; 4 5 import junit.framework.TestCase; 6 import org.apache.geronimo.gbean.GBeanData; 7 import org.apache.geronimo.kernel.Kernel; 8 import org.apache.geronimo.kernel.KernelFactory; 9 10 12 public class AppClientBuilderTest extends TestCase { 13 14 public void testAppClientGBean() throws Exception { 15 Kernel kernel = KernelFactory.newInstance().createKernel("testDomain"); 16 kernel.boot(); 17 18 GBeanData gbeanData = new GBeanData(new ObjectName ("testDomain:test=test"), AppClientModuleBuilder.GBEAN_INFO); 19 kernel.loadGBean(gbeanData, AppClientModuleBuilder.class.getClassLoader()); 20 } 21 } 22 | Popular Tags |