1 22 package org.jboss.test.classloader.circularity; 23 24 import org.jboss.system.ServiceMBeanSupport; 25 import org.jboss.test.classloader.circularity.test.CircularityErrorTests3; 26 import org.jboss.test.classloader.circularity.test.CircularLoadTests; 27 import org.jboss.test.classloader.circularity.test.DeadlockTests3; 28 import org.jboss.test.classloader.circularity.test.RecursiveCCETests; 29 30 34 public class Starter extends ServiceMBeanSupport implements StarterMBean 35 { 36 public void testClassCircularityError() throws Exception 37 { 38 log.info("Begin testClassCircularityError"); 39 try 40 { 41 CircularityErrorTests3 testcase0 = new CircularityErrorTests3(); 42 testcase0.testClassCircularityError(); 43 } 44 finally 45 { 46 log.info("Begin testClassCircularityError"); 47 } 48 } 49 50 public void testDuplicateClass() throws Exception 51 { 52 log.info("Begin testDuplicateClass"); 53 try 54 { 55 CircularLoadTests testcase1 = new CircularLoadTests(); 56 testcase1.testDuplicateClass(); 57 } 58 finally 59 { 60 log.info("Begin testDuplicateClass"); 61 } 62 } 63 64 public void testUCLOwner() throws Exception 65 { 66 log.info("Begin testUCLOwner"); 67 try 68 { 69 CircularLoadTests testcase1 = new CircularLoadTests(); 70 testcase1.testUCLOwner(); 71 } 72 finally 73 { 74 log.info("Begin testUCLOwner"); 75 } 76 } 77 78 public void testLoading() throws Exception 79 { 80 log.info("Begin testLoading"); 81 try 82 { 83 CircularLoadTests testcase1 = new CircularLoadTests(); 84 testcase1.testLoading(); 85 } 86 finally 87 { 88 log.info("Begin testLoading"); 89 } 90 } 91 92 public void testMissingSuperClass() throws Exception 93 { 94 log.info("Begin testMissingSuperClass"); 95 try 96 { 97 CircularLoadTests testcase1 = new CircularLoadTests(); 98 testcase1.testMissingSuperClass(); 99 } 100 finally 101 { 102 log.info("Begin testMissingSuperClass"); 103 } 104 } 105 106 public void testPackageProtected() throws Exception 107 { 108 log.info("Begin testLinkageError"); 109 try 110 { 111 CircularLoadTests testcase1 = new CircularLoadTests(); 112 testcase1.testPackageProtected(); 113 } 114 finally 115 { 116 log.info("Begin testDeadlockCase1"); 117 } 118 } 119 120 public void testLinkageError() throws Exception 121 { 122 log.info("Begin testLinkageError"); 123 try 124 { 125 CircularLoadTests testcase1 = new CircularLoadTests(); 126 testcase1.testLinkageError(); 127 } 128 finally 129 { 130 log.info("Begin testLinkageError"); 131 } 132 } 133 134 public void testDeadlockCase1() throws Exception 135 { 136 log.info("Begin testDeadlockCase1"); 137 try 138 { 139 DeadlockTests3 testcase1 = new DeadlockTests3(); 140 testcase1.testDeadlockCase1(); 141 } 142 finally 143 { 144 log.info("Begin testDeadlockCase1"); 145 } 146 } 147 148 public void testRecursiveLoadMT() throws Exception 149 { 150 log.info("Begin testRecursiveLoadMT"); 151 try 152 { 153 RecursiveCCETests testcase1 = new RecursiveCCETests(); 154 testcase1.testRecursiveLoadMT(); 155 } 156 catch(Exception e) 157 { 158 log.error("testRecursiveLoadMT", e); 159 throw e; 160 } 161 finally 162 { 163 log.info("Begin testRecursiveLoadMT"); 164 } 165 } 166 } 167 | Popular Tags |