Class DefaultTestResult
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.core.DefaultTestResult
- All Implemented Interfaces:
FaultAware, Proxyable, Resource, TestResult
Default implementation of a test result.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultTestResult(Project project, ResourceProvider provider, String name, long executed, long failed) Initializes a new default test result. -
Method Summary
Methods inherited from class ResourceObject
isLocked, name, name, typeMethods inherited from interface Resource
asOf, asOfLocalized, typeMethods inherited from interface TestResult
name
-
Constructor Details
-
DefaultTestResult
protected DefaultTestResult(Project project, ResourceProvider provider, String name, long executed, long failed) Initializes a new default test result.- Parameters:
project- the projectprovider- the provider of the test result, used to check for equalityname- the nameexecuted- the executedfailed- the failed
-
-
Method Details
-
isFaulty
Description copied from interface:FaultAwareChecks if the resource is faulty.- Specified by:
isFaultyin interfaceFaultAware- Returns:
- true, if is faulty
-
setFaulty
Description copied from interface:FaultAwareSets the faulty state.- Specified by:
setFaultyin interfaceFaultAware- Returns:
- the fault aware
-
project
Description copied from interface:TestResultThe test project.- Specified by:
projectin interfaceTestResult- Returns:
- the project
-
executed
Description copied from interface:TestResultReturns the number of executed tests.- Specified by:
executedin interfaceTestResult- Returns:
- the number
-
failed
Description copied from interface:TestResultReturns the number of test failures.- Specified by:
failedin interfaceTestResult- Returns:
- the number
-
hashCode
- Overrides:
hashCodein classResourceObject
-
equals
- Overrides:
equalsin classResourceObject
-
toString
-