01: /*
02: * TomcatXMLContextTest.java
03: * JUnit based test
04: *
05: * Created on July 15, 2007, 8:19 AM
06: */
07:
08: package com.rift.coad.daemon.tomcat;
09:
10: import junit.framework.*;
11:
12: /**
13: *
14: * @author brett
15: */
16: public class TomcatXMLContextTest extends TestCase {
17:
18: public TomcatXMLContextTest(String testName) {
19: super (testName);
20: }
21:
22: protected void setUp() throws Exception {
23: }
24:
25: protected void tearDown() throws Exception {
26: }
27:
28: /**
29: * Test of getContext method, of class com.rift.coad.daemon.tomcat.TomcatXMLContext.
30: */
31: public void testGetContext() throws Exception {
32: System.out.println("getContext");
33:
34: TomcatXMLContext instance = new TomcatXMLContext(
35: TomcatXMLContext.class.getClassLoader());
36:
37: String expResult = "/test";
38: String result = instance.getContext();
39: assertEquals(expResult, result);
40:
41: }
42:
43: }
|