@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TestCase extends Object implements Serializable, Cloneable, StructuredPojo
Information about a test case created using a framework such as NUnit or Cucumber. A test case might be a unit test or a configuration test.
Constructor and Description |
---|
TestCase() |
Modifier and Type | Method and Description |
---|---|
TestCase |
clone() |
boolean |
equals(Object obj) |
Long |
getDurationInNanoSeconds()
The number of nanoseconds it took to run this test case.
|
Date |
getExpired()
The date and time a test case expires.
|
String |
getMessage()
A message associated with a test case.
|
String |
getName()
The name of the test case.
|
String |
getPrefix()
A string that is applied to a series of related test cases.
|
String |
getReportArn()
The ARN of the report to which the test case belongs.
|
String |
getStatus()
The status returned by the test case after it was run.
|
String |
getTestRawDataPath()
The path to the raw data file that contains the test result.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDurationInNanoSeconds(Long durationInNanoSeconds)
The number of nanoseconds it took to run this test case.
|
void |
setExpired(Date expired)
The date and time a test case expires.
|
void |
setMessage(String message)
A message associated with a test case.
|
void |
setName(String name)
The name of the test case.
|
void |
setPrefix(String prefix)
A string that is applied to a series of related test cases.
|
void |
setReportArn(String reportArn)
The ARN of the report to which the test case belongs.
|
void |
setStatus(String status)
The status returned by the test case after it was run.
|
void |
setTestRawDataPath(String testRawDataPath)
The path to the raw data file that contains the test result.
|
String |
toString()
Returns a string representation of this object.
|
TestCase |
withDurationInNanoSeconds(Long durationInNanoSeconds)
The number of nanoseconds it took to run this test case.
|
TestCase |
withExpired(Date expired)
The date and time a test case expires.
|
TestCase |
withMessage(String message)
A message associated with a test case.
|
TestCase |
withName(String name)
The name of the test case.
|
TestCase |
withPrefix(String prefix)
A string that is applied to a series of related test cases.
|
TestCase |
withReportArn(String reportArn)
The ARN of the report to which the test case belongs.
|
TestCase |
withStatus(String status)
The status returned by the test case after it was run.
|
TestCase |
withTestRawDataPath(String testRawDataPath)
The path to the raw data file that contains the test result.
|
public void setReportArn(String reportArn)
The ARN of the report to which the test case belongs.
reportArn
- The ARN of the report to which the test case belongs.public String getReportArn()
The ARN of the report to which the test case belongs.
public TestCase withReportArn(String reportArn)
The ARN of the report to which the test case belongs.
reportArn
- The ARN of the report to which the test case belongs.public void setTestRawDataPath(String testRawDataPath)
The path to the raw data file that contains the test result.
testRawDataPath
- The path to the raw data file that contains the test result.public String getTestRawDataPath()
The path to the raw data file that contains the test result.
public TestCase withTestRawDataPath(String testRawDataPath)
The path to the raw data file that contains the test result.
testRawDataPath
- The path to the raw data file that contains the test result.public void setPrefix(String prefix)
A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix depends on the framework used to generate the tests.
prefix
- A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix
depends on the framework used to generate the tests.public String getPrefix()
A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix depends on the framework used to generate the tests.
public TestCase withPrefix(String prefix)
A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix depends on the framework used to generate the tests.
prefix
- A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix
depends on the framework used to generate the tests.public void setName(String name)
The name of the test case.
name
- The name of the test case.public String getName()
The name of the test case.
public TestCase withName(String name)
The name of the test case.
name
- The name of the test case.public void setStatus(String status)
The status returned by the test case after it was run. Valid statuses are SUCCEEDED
,
FAILED
, ERROR
, SKIPPED
, and UNKNOWN
.
status
- The status returned by the test case after it was run. Valid statuses are SUCCEEDED
,
FAILED
, ERROR
, SKIPPED
, and UNKNOWN
.public String getStatus()
The status returned by the test case after it was run. Valid statuses are SUCCEEDED
,
FAILED
, ERROR
, SKIPPED
, and UNKNOWN
.
SUCCEEDED
,
FAILED
, ERROR
, SKIPPED
, and UNKNOWN
.public TestCase withStatus(String status)
The status returned by the test case after it was run. Valid statuses are SUCCEEDED
,
FAILED
, ERROR
, SKIPPED
, and UNKNOWN
.
status
- The status returned by the test case after it was run. Valid statuses are SUCCEEDED
,
FAILED
, ERROR
, SKIPPED
, and UNKNOWN
.public void setDurationInNanoSeconds(Long durationInNanoSeconds)
The number of nanoseconds it took to run this test case.
durationInNanoSeconds
- The number of nanoseconds it took to run this test case.public Long getDurationInNanoSeconds()
The number of nanoseconds it took to run this test case.
public TestCase withDurationInNanoSeconds(Long durationInNanoSeconds)
The number of nanoseconds it took to run this test case.
durationInNanoSeconds
- The number of nanoseconds it took to run this test case.public void setMessage(String message)
A message associated with a test case. For example, an error message or stack trace.
message
- A message associated with a test case. For example, an error message or stack trace.public String getMessage()
A message associated with a test case. For example, an error message or stack trace.
public TestCase withMessage(String message)
A message associated with a test case. For example, an error message or stack trace.
message
- A message associated with a test case. For example, an error message or stack trace.public void setExpired(Date expired)
The date and time a test case expires. A test case expires 30 days after it is created. An expired test case is not available to view in CodeBuild.
expired
- The date and time a test case expires. A test case expires 30 days after it is created. An expired test
case is not available to view in CodeBuild.public Date getExpired()
The date and time a test case expires. A test case expires 30 days after it is created. An expired test case is not available to view in CodeBuild.
public TestCase withExpired(Date expired)
The date and time a test case expires. A test case expires 30 days after it is created. An expired test case is not available to view in CodeBuild.
expired
- The date and time a test case expires. A test case expires 30 days after it is created. An expired test
case is not available to view in CodeBuild.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.