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