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