KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > classloader > circularity > Starter


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

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 /** The MBean driver for the circularity class loading unit tests
31  * @author Scott.Stark@jboss.org
32  * @version $Revision: 37406 $
33  */

34 public class Starter extends ServiceMBeanSupport implements StarterMBean
35 {
36    public void testClassCircularityError() throws Exception JavaDoc
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 JavaDoc
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 JavaDoc
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 JavaDoc
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 JavaDoc
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 JavaDoc
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 JavaDoc
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 JavaDoc
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 JavaDoc
149    {
150       log.info("Begin testRecursiveLoadMT");
151       try
152       {
153          RecursiveCCETests testcase1 = new RecursiveCCETests();
154          testcase1.testRecursiveLoadMT();
155       }
156       catch(Exception JavaDoc 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