KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > aop > nonjunit > StandaloneTest


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.aop.nonjunit;
23
24 import javax.naming.InitialContext JavaDoc;
25
26 import org.jboss.test.JBossTestCase;
27 import junit.framework.Test;
28 import java.net.InetAddress JavaDoc;
29 import javax.management.ObjectName JavaDoc;
30 import org.jboss.jmx.adaptor.rmi.RMIAdaptor;
31 import org.jboss.test.aop.bean.AOPTester;
32
33 import junit.framework.*;
34 /**
35  * Sample client for the jboss container.
36  *
37  * @author <a HREF="mailto:bill@burkecentral.com">Bill Burke</a>
38  * @version $Id: StandaloneTest.java 37406 2005-10-29 23:41:24Z starksm $
39  */

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 JavaDoc name) {
49
50       super(name);
51       
52    }
53
54    public void testMethodInterception() throws Exception JavaDoc
55    {
56       tester.testMethodInterception();
57    }
58
59
60    public void testFieldInterception() throws Exception JavaDoc
61    {
62       tester.testFieldInterception();
63    }
64
65    public void testBasic() throws Exception JavaDoc
66    {
67       tester.testBasic();
68    }
69
70
71    public void testAspect() throws Exception JavaDoc
72    {
73       tester.testAspect();
74    }
75
76    public void testCallerPointcut() throws Exception JavaDoc
77    {
78       tester.testCallerPointcut();
79    }
80
81    public void testInheritance() throws Exception JavaDoc
82    {
83       tester.testInheritance();
84    }
85    
86    public void testMetadata() throws Exception JavaDoc
87    {
88       tester.testMetadata();
89    }
90    
91    public void testDynamicInterceptors() throws Exception JavaDoc
92    {
93       tester.testDynamicInterceptors();
94    }
95    
96    public void testMixin() throws Exception JavaDoc
97    {
98       tester.testMixin();
99    }
100    
101    
102    public void testConstructorInterception() throws Exception JavaDoc
103    {
104       tester.testConstructorInterception();
105    }
106
107    public void testExceptions() throws Exception JavaDoc
108    {
109       tester.testExceptions();
110    }
111
112    public static Test suite() throws Exception JavaDoc
113    {
114       TestSuite suite = new TestSuite();
115       suite.addTest(new TestSuite(StandaloneTest.class));
116       return suite;
117    }
118
119 }
120
Popular Tags