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