public class Result extends Object implements Serializable
TestResult
but remoting safe.Modifier and Type | Class and Description |
---|---|
static class |
Result.Failure
Represents an error or a failure.
|
Modifier and Type | Field and Description |
---|---|
List<Result.Failure> |
errors |
List<Result.Failure> |
failures |
int |
totalRun |
static Result |
ZERO |
Constructor and Description |
---|
Result(int totalRun) |
Modifier and Type | Method and Description |
---|---|
static Result |
add(Result... results) |
Result |
add(Result that) |
static Result |
from(junit.framework.TestResult tr) |
static Result |
fromFailure(Result.Failure f) |
boolean |
isSuccess() |
junit.framework.TestResult |
toTestResult()
Restores the
TestResult . |
public final int totalRun
public final List<Result.Failure> failures
public final List<Result.Failure> errors
public static final Result ZERO
public static Result from(junit.framework.TestResult tr)
public static Result fromFailure(Result.Failure f)
public boolean isSuccess()
public junit.framework.TestResult toTestResult()
TestResult
.Copyright © 2012. All Rights Reserved.