コード例 #1
0
  public static Test suite() {
    String ormTesting =
        TestingProperties.getProperty(
            TestingProperties.ORM_TESTING, TestingProperties.JPA_ORM_TESTING);
    final String persistenceUnit =
        ormTesting.equals(TestingProperties.JPA_ORM_TESTING) ? "default" : "extended-advanced";
    TestSuite suite = new TestSuite("AdvancedJunitTest - " + persistenceUnit);

    suite.addTest(new AdvancedJunitTest("testSetup", persistenceUnit));
    suite.addTest(new AdvancedJunitTest("testEL254937", persistenceUnit));
    suite.addTest(new AdvancedJunitTest("testGF1894", persistenceUnit));
    suite.addTest(new AdvancedJunitTest("testManAndWoman", persistenceUnit));
    if (persistenceUnit.equals("extended-advanced")) {
      suite.addTest(new AdvancedJunitTest("testForRedirectorsAndInterceptors", persistenceUnit));
    }

    return suite;
  }
コード例 #2
0
 public static Test suite() {
   return suite(
       TestingProperties.getProperty(
           TestingProperties.ORM_TESTING, TestingProperties.JPA_ORM_TESTING));
 }