KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > remoting > marshall > dynamic > remote > http > HTTPMarshallerLoadingTestCase


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.remote.http;
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 public class HTTPMarshallerLoadingTestCase extends TestDriver
21 {
22    /**
23     * Returns the classpath to be added to the classpath used to start the client tests.
24     * Default return is null, which means no extra classpath will be added.
25     *
26     * @return
27     */

28    protected String JavaDoc getExtendedServerClasspath()
29    {
30       return System.getProperty("loader.path");
31    }
32
33    public void declareTestClasses()
34    {
35       addTestClasses(MarshallerLoadingClient.class.getName(),
36                      1,
37                      MarshallerLoadingServer.class.getName());
38    }
39
40    protected Level getTestHarnessLogLevel()
41    {
42       return Level.DEBUG;
43    }
44
45 }
Popular Tags