2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.shale.blank.systest;
21
22 import java.util.ResourceBundle;
23 import junit.framework.Test;
24 import junit.framework.TestSuite;
25 import org.apache.shale.test.cargo.CargoTestSetup;
26 import org.apache.shale.test.htmlunit.AbstractHtmlUnitTestCase;
27
28 /***
29 * <p>System test case for the <code>/welcome.jsp</code> page.</p>
30 */
31 public class WelcomeTestCase extends AbstractHtmlUnitTestCase {
32
33
34
35
36
37 /***
38 * <p>Construct a new instance of this test case.</p>
39 *
40 * @param name Name of the new test case
41 */
42 public WelcomeTestCase(String name) {
43
44 super(name);
45
46 }
47
48
49
50
51
52 private ResourceBundle bundle =
53 ResourceBundle.getBundle("org.apache.shale.blank.Bundle");
54
55
56
57
58
59 /***
60 * <p>Set up the instance variables required for this test case.</p>
61 */
62 protected void setUp() throws Exception {
63
64 super.setUp();
65 page("/");
66
67 }
68
69
70 /***
71 * <p>Return the set of tests included in this test suite.</p>
72 */
73 public static Test suite() {
74
75 return new CargoTestSetup(new TestSuite(WelcomeTestCase.class));
76
77 }
78
79
80 /***
81 * <p>Tear down instance variables required by this test case.</p>
82 */
83 protected void tearDown() throws Exception {
84
85 super.tearDown();
86
87 }
88
89
90
91
92
93
94
95 public void testPristine() throws Exception {
96
97 assertEquals(bundle.getString("welcome.title"), title());
98
99 }
100
101
102 }