KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > remoting > marshall > dynamic > local > MarshallerLoadingTestCase


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.remoting.marshall.dynamic.local;
8
9 import org.apache.log4j.Level;
10 import org.jboss.jrunit.harness.TestDriver;
11
12 /**
13  * This should be used as the main test case for the invoker client/server.
14  * It will start one instance of the client and one of the server and will
15  * gather the test results and report them in standard JUnit format. When
16  * wanting to run JUnit test for invoker, this is the class to use.
17  *
18  * @author <a HREF="mailto:telrod@e2technologies.net">Tom Elrod</a>
19  */

20
21 public class MarshallerLoadingTestCase extends TestDriver
22 {
23    /**
24     * Returns the classpath to be added to the classpath used to start the client tests.
25     * Default return is null, which means no extra classpath will be added.
26     *
27     * @return
28     */

29    protected String JavaDoc getExtendedServerClasspath()
30    {
31       return System.getProperty("loader.path");
32    }
33
34    /**
35     * Returns the classpath to be added to the classpath used to start the client tests.
36     * Default return is null, which means no extra classpath will be added.
37     *
38     * @return
39     */

40    protected String JavaDoc getExtendedClientClasspath()
41    {
42       return System.getProperty("loader.path");
43    }
44
45    public void declareTestClasses()
46    {
47       addTestClasses(MarshallerLoadingClient.class.getName(),
48                      1,
49                      MarshallerLoadingServer.class.getName());
50    }
51
52    protected Level getTestHarnessLogLevel()
53    {
54       return Level.DEBUG;
55    }
56
57
58 }
Popular Tags