1
2
3
4
5
6
7
8
9
10
11
12
13
14 package org.melati.courteouspoem.melati.test;
15
16 import org.melati.JettyWebTestCase;
17
18
19
20
21
22
23
24
25
26 public class CourteouspoemJettyWebTestCase extends JettyWebTestCase {
27
28 public CourteouspoemJettyWebTestCase(String name) {
29 super(name);
30 webAppDirName = "src/main/webapp";
31 contextName = "";
32 }
33
34
35
36
37
38 protected void setUp() throws Exception {
39 super.setUp();
40 }
41
42
43
44
45
46 protected void tearDown() throws Exception {
47 super.tearDown();
48 }
49
50
51
52
53
54
55 public static void main(String[] args) throws Exception {
56 contextName = "";
57 webAppDirName = "src/main/webapp";
58 startServer(8080);
59 }
60
61
62
63
64 public void testIndex() {
65 beginAt("/");
66 assertTextPresent("Admin");
67 }
68
69 }