1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.scxml.env.servlet;
18
19 import junit.framework.Test;
20 import junit.framework.TestCase;
21 import junit.framework.TestSuite;
22
23 public class ServletContextResolverTest extends TestCase {
24
25 public ServletContextResolverTest(String testName) {
26 super(testName);
27 }
28
29 public static Test suite() {
30 return new TestSuite(ServletContextResolverTest.class);
31 }
32
33 public static void main(String args[]) {
34 String[] testCaseName = {ServletContextResolverTest.class.getName()};
35 junit.textui.TestRunner.main(testCaseName);
36 }
37
38 public void testIllegalInstance() {
39 try {
40 new ServletContextResolver(null);
41 fail("ServletContextResolver successfully instantiated with"
42 + " null ServletContext");
43 } catch (IllegalArgumentException iae) {
44
45 }
46 }
47
48 }