1 22 package org.jboss.test.aop.nonjunit; 23 24 import javax.naming.InitialContext ; 25 26 import org.jboss.test.JBossTestCase; 27 import junit.framework.Test; 28 import java.net.InetAddress ; 29 import javax.management.ObjectName ; 30 import org.jboss.jmx.adaptor.rmi.RMIAdaptor; 31 import org.jboss.test.aop.bean.AOPTester; 32 33 import junit.framework.*; 34 40 41 public class StandaloneTest 42 extends TestCase 43 { 44 static boolean deployed = false; 45 static int test = 0; 46 AOPTester tester = new AOPTester(); 47 48 public StandaloneTest(String name) { 49 50 super(name); 51 52 } 53 54 public void testMethodInterception() throws Exception 55 { 56 tester.testMethodInterception(); 57 } 58 59 60 public void testFieldInterception() throws Exception 61 { 62 tester.testFieldInterception(); 63 } 64 65 public void testBasic() throws Exception 66 { 67 tester.testBasic(); 68 } 69 70 71 public void testAspect() throws Exception 72 { 73 tester.testAspect(); 74 } 75 76 public void testCallerPointcut() throws Exception 77 { 78 tester.testCallerPointcut(); 79 } 80 81 public void testInheritance() throws Exception 82 { 83 tester.testInheritance(); 84 } 85 86 public void testMetadata() throws Exception 87 { 88 tester.testMetadata(); 89 } 90 91 public void testDynamicInterceptors() throws Exception 92 { 93 tester.testDynamicInterceptors(); 94 } 95 96 public void testMixin() throws Exception 97 { 98 tester.testMixin(); 99 } 100 101 102 public void testConstructorInterception() throws Exception 103 { 104 tester.testConstructorInterception(); 105 } 106 107 public void testExceptions() throws Exception 108 { 109 tester.testExceptions(); 110 } 111 112 public static Test suite() throws Exception 113 { 114 TestSuite suite = new TestSuite(); 115 suite.addTest(new TestSuite(StandaloneTest.class)); 116 return suite; 117 } 118 119 } 120 | Popular Tags |