github.phpd.cn/thought-machine/please@v12.2.0+incompatible/tools/junit_runner/src/build/please/test/TestResult.java (about) 1 package build.please.test; 2 3 final class TestResult { 4 // Result of an individual JUnit test. 5 6 final String testClassName; 7 final String testMethodName; 8 final long runTime; 9 final String type; 10 final Throwable failure; 11 final String stdOut; 12 final String stdErr; 13 14 public TestResult(String testClassName, 15 String testMethodName, 16 long runTime, 17 String type, 18 Throwable failure, 19 String stdOut, 20 String stdErr) { 21 this.testClassName = testClassName; 22 this.testMethodName = testMethodName; 23 this.runTime = runTime; 24 this.type = type; 25 this.failure = failure; 26 this.stdOut = stdOut; 27 this.stdErr = stdErr; 28 } 29 30 public boolean isSuccess() { 31 return type.equals("SUCCESS"); 32 } 33 }