Skip to content

Commit e4e96e6

Browse files
Added a succesful result to the test run.
1 parent 654f6f5 commit e4e96e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/coreapiTest/TestRunner.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33

44
import coreapi.*;
5-
import junit.framework.Test;
6-
import junit.framework.TestSuite;
75

86
import org.junit.runner.JUnitCore;
97
import org.junit.runner.Result;
@@ -14,10 +12,11 @@ public class TestRunner
1412
public static void main(String[] args)
1513
{
1614
ProductCatalog.createProducts();
17-
Result result = JUnitCore.runClasses(CoffeShopTestSuite.class);
15+
Result result = JUnitCore.runClasses(CoffeeShopTestSuite.class);
1816
for(Failure failure : result.getFailures())
1917
{
2018
System.out.println(failure.toString());
2119
}
20+
System.out.println(result.wasSuccessful());
2221
}
2322
}

0 commit comments

Comments
 (0)