예제 #1
0
  public static void main(String[] args) {

    stat.addDescription("Unit test for IT 12891, 17377");
    WebTest webTest = new WebTest(args);

    try {
      webTest.doTest("hello", 200);
      webTest.doTest("hello", 200);
      webTest.doTest("hello2", 500);
      webTest.doTest("hello2", 200);

      webTest.doTest("pages/test.jsp", 200);
      stat.addStatus(TEST_NAME, stat.PASS);
    } catch (Exception ex) {
      ex.printStackTrace();
      stat.addStatus(TEST_NAME, stat.FAIL);
    }

    stat.printSummary();
  }
예제 #2
0
  public static void main(String[] args) {

    stat.addDescription("Unit test for resource injection into " + "ServletRequestListener");
    WebTest webTest = new WebTest(args);

    try {
      webTest.doTest();
      stat.addStatus(TEST_NAME, stat.PASS);
    } catch (Exception ex) {
      ex.printStackTrace();
      stat.addStatus(TEST_NAME, stat.FAIL);
    }

    stat.printSummary();
  }
예제 #3
0
  public static void main(String[] args) {

    stat.addDescription(
        "Unit test for ensuring binary compatibility "
            + "of GlassFish-style valves compiled against the old Valve "
            + "interface");
    WebTest webTest = new WebTest(args);

    try {
      webTest.doTest();
      stat.addStatus(TEST_NAME, stat.PASS);
    } catch (Exception ex) {
      ex.printStackTrace();
      stat.addStatus(TEST_NAME, stat.FAIL);
    }

    stat.printSummary();
  }
예제 #4
0
 public static void main(String[] args) {
   stat.addDescription("Unit test for Bugzilla 30067");
   WebTest webTest = new WebTest(args);
   webTest.doTest();
   stat.printSummary();
 }
예제 #5
0
 public static void main(String[] args) {
   stat.addDescription("Unit test for one session cookie header");
   WebTest webTest = new WebTest(args);
   webTest.doTest();
   stat.printSummary(TEST_NAME);
 }
예제 #6
0
 public static void main(String[] args) {
   stat.addDescription("Unit test for jsp:attribute with omit");
   WebTest webTest = new WebTest(args);
   webTest.doTest();
   stat.printSummary();
 }
예제 #7
0
 public static void main(String[] args) {
   stat.addDescription("Unit test for @WebServlet");
   WebTest webTest = new WebTest(args);
   webTest.doTest();
   stat.printSummary(TEST_NAME);
 }