org.sonar.api.batch.sensor.test.internal
Class DefaultTestCaseExecution
java.lang.Object
org.sonar.api.batch.sensor.internal.DefaultStorable
org.sonar.api.batch.sensor.test.internal.DefaultTestCaseExecution
- All Implemented Interfaces:
- TestCaseExecution
public class DefaultTestCaseExecution
- extends DefaultStorable
- implements TestCaseExecution
DefaultTestCaseExecution
public DefaultTestCaseExecution()
DefaultTestCaseExecution
public DefaultTestCaseExecution(SensorStorage storage)
inTestFile
public DefaultTestCaseExecution inTestFile(InputFile testFile)
- Description copied from interface:
TestCaseExecution
- Set file where this test is located. Mandatory.
- Specified by:
inTestFile in interface TestCaseExecution
name
public DefaultTestCaseExecution name(String name)
- Description copied from interface:
TestCaseExecution
- Set name of this test. Name is mandatory.
- Specified by:
name in interface TestCaseExecution
durationInMs
public DefaultTestCaseExecution durationInMs(long duration)
- Description copied from interface:
TestCaseExecution
- Duration in milliseconds
- Specified by:
durationInMs in interface TestCaseExecution
status
public DefaultTestCaseExecution status(TestCaseExecution.Status status)
- Description copied from interface:
TestCaseExecution
- Status of execution of the test.
- Specified by:
status in interface TestCaseExecution
message
public DefaultTestCaseExecution message(@Nullable
String message)
- Description copied from interface:
TestCaseExecution
- Message (usually in case of
TestCaseExecution.Status.ERROR or TestCaseExecution.Status.FAILURE).
- Specified by:
message in interface TestCaseExecution
ofType
public DefaultTestCaseExecution ofType(TestCaseExecution.Type type)
- Description copied from interface:
TestCaseExecution
- Type of test.
- Specified by:
ofType in interface TestCaseExecution
stackTrace
public DefaultTestCaseExecution stackTrace(@Nullable
String stackTrace)
- Description copied from interface:
TestCaseExecution
- Set stacktrace (usually in case of
TestCaseExecution.Status.ERROR).
- Specified by:
stackTrace in interface TestCaseExecution
testFile
public InputFile testFile()
- Description copied from interface:
TestCaseExecution
- InputFile where this test is located.
- Specified by:
testFile in interface TestCaseExecution
durationInMs
@CheckForNull
public Long durationInMs()
- Description copied from interface:
TestCaseExecution
- Duration in milliseconds
- Specified by:
durationInMs in interface TestCaseExecution
type
public TestCaseExecution.Type type()
- Description copied from interface:
TestCaseExecution
- Type of test.
- Specified by:
type in interface TestCaseExecution
status
public TestCaseExecution.Status status()
- Description copied from interface:
TestCaseExecution
- Status of execution of the test.
- Specified by:
status in interface TestCaseExecution
name
public String name()
- Description copied from interface:
TestCaseExecution
- Name of this test case.
- Specified by:
name in interface TestCaseExecution
message
@CheckForNull
public String message()
- Description copied from interface:
TestCaseExecution
- Message (usually in case of
TestCaseExecution.Status.ERROR or TestCaseExecution.Status.FAILURE).
- Specified by:
message in interface TestCaseExecution
stackTrace
@CheckForNull
public String stackTrace()
- Description copied from interface:
TestCaseExecution
- Stacktrace (usually in case of
TestCaseExecution.Status.ERROR).
- Specified by:
stackTrace in interface TestCaseExecution
doSave
public void doSave()
- Specified by:
doSave in class DefaultStorable
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2009–2015 SonarSource. All rights reserved.