mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 16:00:51 -07:00
test suite and cookie test
This commit is contained in:
parent
4a5809910b
commit
df68a7b593
3 changed files with 52 additions and 0 deletions
15
TestRunner.java
Normal file
15
TestRunner.java
Normal file
|
@ -0,0 +1,15 @@
|
|||
package org.json.junit;
|
||||
|
||||
import org.junit.runner.JUnitCore;
|
||||
import org.junit.runner.Result;
|
||||
import org.junit.runner.notification.Failure;
|
||||
|
||||
public class TestRunner {
|
||||
public static void main(String[] args) {
|
||||
Result result = JUnitCore.runClasses(JunitTestSuite.class);
|
||||
for (Failure failure : result.getFailures()) {
|
||||
System.out.println(failure.toString());
|
||||
}
|
||||
System.out.println(result.wasSuccessful());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue