KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > aop > regression > jbaop206inheritadvised > AOPTester


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.aop.regression.jbaop206inheritadvised;
8
9
10 import org.jboss.test.aop.AOPTestWithSetup;
11
12 import junit.framework.Test;
13 import junit.framework.TestSuite;
14
15 /**
16  * Tests that static is used correctly
17  *
18  * @author <a HREF="mailto:bill@jboss.org">Bill Burke</a>
19  * @version $Revision: 45977 $
20  */

21 public class AOPTester extends AOPTestWithSetup
22 {
23    public static Test suite()
24    {
25       TestSuite suite = new TestSuite("AOPTester");
26       suite.addTestSuite(AOPTester.class);
27       return suite;
28    }
29
30    public AOPTester(String JavaDoc name)
31    {
32       super(name);
33    }
34
35    public void testRegression()
36    {
37       new Sub();
38       assertTrue(TestInterceptor.intercepted);
39    }
40
41 }
42
43
Popular Tags