Search in sources :

Example 51 with Failure

use of org.junit.runner.notification.Failure in project GNS by MobilityFirst.

the class BatchCreateOpsFail method main.

/**
   *
   * @param args
   * @throws IOException
   */
public static void main(String[] args) throws IOException {
    Util.assertAssertionsEnabled();
    processArgs(args);
    Result result = JUnitCore.runClasses(BatchCreateOpsFail.class);
    for (Failure failure : result.getFailures()) {
        System.out.println(failure.getMessage());
        failure.getException().printStackTrace();
    }
}
Also used : Failure(org.junit.runner.notification.Failure) Result(org.junit.runner.Result)

Example 52 with Failure

use of org.junit.runner.notification.Failure in project GNS by MobilityFirst.

the class SequentialCreateFieldTimeout method main.

/**
   * @param args
   * @throws IOException
   */
public static void main(String[] args) throws IOException {
    Util.assertAssertionsEnabled();
    Result result = JUnitCore.runClasses(GNSClientCapacityTest.class);
    for (Failure failure : result.getFailures()) {
        System.out.println(failure.getMessage());
        failure.getException().printStackTrace();
    }
}
Also used : Failure(org.junit.runner.notification.Failure) Result(org.junit.runner.Result)

Example 53 with Failure

use of org.junit.runner.notification.Failure in project GNS by MobilityFirst.

the class ServerIntegrationTest method main.

/**
   *
   * @param args
   */
public static void main(String[] args) {
    Result result = JUnitCore.runClasses(ServerIntegrationTest.class);
    System.out.println("\n\n-----------Completed all " + result.getRunCount() + " tests" + (result.getFailureCount() > 0 ? "; the following " + result.getFailureCount() + " tests failed:" : " successfully") + "--------------");
    for (Failure failure : result.getFailures()) {
        System.out.println(failure.toString() + "\n");
    }
}
Also used : Failure(org.junit.runner.notification.Failure) Result(org.junit.runner.Result)

Example 54 with Failure

use of org.junit.runner.notification.Failure in project GNS by MobilityFirst.

the class SubGuidDeletesTest method main.

/**
   * @param args
   * @throws IOException
   */
public static void main(String[] args) throws IOException {
    Util.assertAssertionsEnabled();
    processArgs(args);
    Result result = JUnitCore.runClasses(SubGuidDeletesTest.class);
    for (Failure failure : result.getFailures()) {
        System.out.println(failure.getMessage());
        failure.getException().printStackTrace();
    }
}
Also used : Failure(org.junit.runner.notification.Failure) Result(org.junit.runner.Result)

Example 55 with Failure

use of org.junit.runner.notification.Failure in project GNS by MobilityFirst.

the class TestActiveCodeRemoteQueryClient method main.

/**
	 * @param args
	 */
public static void main(String[] args) {
    Result result = JUnitCore.runClasses(TestActiveCodeRemoteQueryClient.class);
    for (Failure failure : result.getFailures()) {
        System.out.println(failure.getMessage());
        failure.getException().printStackTrace();
    }
}
Also used : Failure(org.junit.runner.notification.Failure) Result(org.junit.runner.Result)

Aggregations

Failure (org.junit.runner.notification.Failure)194 Test (org.junit.Test)101 Result (org.junit.runner.Result)91 Description (org.junit.runner.Description)40 IOException (java.io.IOException)32 UnitTest (org.apache.geode.test.junit.categories.UnitTest)27 JUnitCore (org.junit.runner.JUnitCore)24 FileInputStream (java.io.FileInputStream)20 InputStream (java.io.InputStream)20 RunListener (org.junit.runner.notification.RunListener)19 ArrayList (java.util.ArrayList)11 ByteArrayInputStream (java.io.ByteArrayInputStream)9 ComparisonFailure (org.junit.ComparisonFailure)9 JUnit4TestListener (com.intellij.junit4.JUnit4TestListener)7 RunNotifier (org.junit.runner.notification.RunNotifier)7 ResourceImpl (ddf.catalog.resource.impl.ResourceImpl)6 Request (org.junit.runner.Request)6 BinaryContentImpl (ddf.catalog.data.impl.BinaryContentImpl)5 Before (org.junit.Before)5 Runner (org.junit.runner.Runner)5