1 17 package org.apache.geronimo.interop; 18 19 import javax.management.ObjectName ; 20 21 import junit.framework.TestCase; 22 23 import org.apache.geronimo.gbean.GBeanInfo; 24 import org.apache.geronimo.kernel.KernelFactory; 25 import org.apache.geronimo.kernel.Kernel; 26 27 28 31 public class InteropGBeanTest extends TestCase { 32 33 private Kernel kernel; 34 private ObjectName objName; 35 private static final String KERNEL_NAME = "testKernel"; 36 37 public void testFoo() throws Exception { 38 log("testFoo():"); 39 } 40 41 public void testProperties() throws Exception { 42 try { 43 log("testProperties():"); 44 45 GBeanInfo gbi = InteropGBean.getGBeanInfo(); 46 log("testProperties(): gbi = " + gbi); 47 48 51 67 } catch (Error er) { 68 log("er = " + er); 70 er.printStackTrace(System.out); 71 throw new Exception (er.toString()); 72 } catch (Exception ex) { 73 log("ex = " + ex); 75 ex.printStackTrace(System.out); 76 throw new Exception (ex.toString()); 77 } 78 } 79 80 85 public void testError() { 86 log("testError()"); 87 } 89 90 public void testException() 91 throws Exception { 92 log("testException()"); 93 } 95 96 protected void setUp() throws Exception { 97 log("setUp():"); 98 kernel = KernelFactory.newInstance().createKernel(KERNEL_NAME); 99 100 log("setUp(): kernel = " + kernel); 101 102 kernel.boot(); 103 } 104 105 protected void tearDown() throws Exception { 106 log("tearDown():"); 107 kernel.shutdown(); 108 } 109 110 protected void log(String msg) { 111 System.out.println(msg); 112 } 113 } 114 | Popular Tags |