View Javadoc
1   /*
2    * $Source$
3    * $Revision$
4    *
5    * Copyright (C) 2010 Tim Pizey
6    *
7    *
8    * Contact details for copyright holder:
9    *
10   *     Tim Pizey <timp At paneris.org>
11   *     http://paneris.org/~timp
12   */
13  
14  package org.melati.courteouspoem.melati.test;
15  
16  import org.melati.JettyWebTestCase;
17  
18  /**
19   * @author timp
20   * @since  3 Mar 2009
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     * {@inheritDoc}
36     * @see org.melati.JettyWebTestCase#setUp()
37     */
38    protected void setUp() throws Exception {
39      super.setUp();
40    }
41  
42    /**
43     * {@inheritDoc}
44     * @see org.melati.JettyWebTestCase#tearDown()
45     */
46    protected void tearDown() throws Exception {
47      super.tearDown();
48    }
49  
50    /**
51     * If you don't know by now.
52     * @param args
53     * @throws Exception
54     */
55    public static void main(String[] args) throws Exception {
56      contextName = "";
57      webAppDirName = "src/main/webapp";
58      startServer(8080);
59    }
60  
61    /**
62     * Just to say hello.
63     */
64    public void testIndex() {
65      beginAt("/");
66      assertTextPresent("Admin");
67    }
68    
69  }