KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > client > builder > AppClientBuilderTest


1 package org.apache.geronimo.client.builder;
2
3 import javax.management.ObjectName JavaDoc;
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 /**
11  */

12 public class AppClientBuilderTest extends TestCase {
13
14     public void testAppClientGBean() throws Exception JavaDoc {
15         Kernel kernel = KernelFactory.newInstance().createKernel("testDomain");
16         kernel.boot();
17
18         GBeanData gbeanData = new GBeanData(new ObjectName JavaDoc("testDomain:test=test"), AppClientModuleBuilder.GBEAN_INFO);
19         kernel.loadGBean(gbeanData, AppClientModuleBuilder.class.getClassLoader());
20     }
21 }
22
Popular Tags