001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.test.classloader.circularity;
023:
024: import org.jboss.system.ServiceMBeanSupport;
025: import org.jboss.test.classloader.circularity.test.CircularityErrorTests3;
026: import org.jboss.test.classloader.circularity.test.CircularLoadTests;
027: import org.jboss.test.classloader.circularity.test.DeadlockTests3;
028: import org.jboss.test.classloader.circularity.test.RecursiveCCETests;
029:
030: /** The MBean driver for the circularity class loading unit tests
031: * @author Scott.Stark@jboss.org
032: * @version $Revision: 57211 $
033: */
034: public class Starter extends ServiceMBeanSupport implements
035: StarterMBean {
036: public void testClassCircularityError() throws Exception {
037: log.info("Begin testClassCircularityError");
038: try {
039: CircularityErrorTests3 testcase0 = new CircularityErrorTests3();
040: testcase0.testClassCircularityError();
041: } finally {
042: log.info("Begin testClassCircularityError");
043: }
044: }
045:
046: public void testDuplicateClass() throws Exception {
047: log.info("Begin testDuplicateClass");
048: try {
049: CircularLoadTests testcase1 = new CircularLoadTests();
050: testcase1.testDuplicateClass();
051: } finally {
052: log.info("Begin testDuplicateClass");
053: }
054: }
055:
056: public void testUCLOwner() throws Exception {
057: log.info("Begin testUCLOwner");
058: try {
059: CircularLoadTests testcase1 = new CircularLoadTests();
060: testcase1.testUCLOwner();
061: } finally {
062: log.info("Begin testUCLOwner");
063: }
064: }
065:
066: public void testLoading() throws Exception {
067: log.info("Begin testLoading");
068: try {
069: CircularLoadTests testcase1 = new CircularLoadTests();
070: testcase1.testLoading();
071: } finally {
072: log.info("Begin testLoading");
073: }
074: }
075:
076: public void testMissingSuperClass() throws Exception {
077: log.info("Begin testMissingSuperClass");
078: try {
079: CircularLoadTests testcase1 = new CircularLoadTests();
080: testcase1.testMissingSuperClass();
081: } finally {
082: log.info("Begin testMissingSuperClass");
083: }
084: }
085:
086: public void testPackageProtected() throws Exception {
087: log.info("Begin testLinkageError");
088: try {
089: CircularLoadTests testcase1 = new CircularLoadTests();
090: testcase1.testPackageProtected();
091: } finally {
092: log.info("Begin testDeadlockCase1");
093: }
094: }
095:
096: public void testLinkageError() throws Exception {
097: log.info("Begin testLinkageError");
098: try {
099: CircularLoadTests testcase1 = new CircularLoadTests();
100: testcase1.testLinkageError();
101: } finally {
102: log.info("Begin testLinkageError");
103: }
104: }
105:
106: public void testDeadlockCase1() throws Exception {
107: log.info("Begin testDeadlockCase1");
108: try {
109: DeadlockTests3 testcase1 = new DeadlockTests3();
110: testcase1.testDeadlockCase1();
111: } finally {
112: log.info("Begin testDeadlockCase1");
113: }
114: }
115:
116: public void testRecursiveLoadMT() throws Exception {
117: log.info("Begin testRecursiveLoadMT");
118: try {
119: RecursiveCCETests testcase1 = new RecursiveCCETests();
120: testcase1.testRecursiveLoadMT();
121: } catch (Exception e) {
122: log.error("testRecursiveLoadMT", e);
123: throw e;
124: } finally {
125: log.info("Begin testRecursiveLoadMT");
126: }
127: }
128: }
|