Class OpenMetadataTestCaseResult
java.lang.Object
org.odpi.openmetadata.conformance.beans.OpenMetadataTestCaseSummary
org.odpi.openmetadata.conformance.beans.OpenMetadataTestCaseResult
- All Implemented Interfaces:
Serializable
OpenMetadataTestCaseResults is a bean for storing the result of a single test.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault Constructor used when converting from JSONConstructor used when test cases are running since the superclass's properties can be extracted from the test case. -
Method Summary
Modifier and TypeMethodDescriptionReturn details of an unexpected exception that interrupted the test.Return the properties about the repository that were discovered during the test.Return the elapsed time that this test case executed.Return the list of assertions for functions that correctly reported not supported.Return the list of assertions that were true when the test ran.Return the message to confirm the successful run of the test.Return the list of assertions that were false when the test ran.void
setConformanceException
(ExceptionBean conformanceException) Set up details of an unexpected exception that interrupted the test.void
setDiscoveredProperties
(Map<String, Object> discoveredProperties) Set up the properties about the repository that were discovered during the test.void
setElapsedTime
(Long elapsedTime) Set the elapsed time that this test case executed.void
setNotSupportedAssertions
(List<String> notSupportedAssertions) Set up the list of assertions for functions that correctly reported not supported.void
setSuccessfulAssertions
(List<String> successfulAssertions) Set up the list of assertions that were true when the test ran.void
setSuccessMessage
(String successMessage) Set up the message to confirm the successful run of the test.void
setUnsuccessfulAssertions
(List<String> unsuccessfulAssertions) Set up the list of assertions that were false when the test ran.toString()
toString() JSON-styleMethods inherited from class org.odpi.openmetadata.conformance.beans.OpenMetadataTestCaseSummary
getTestCaseDescriptionURL, getTestCaseId, getTestCaseName, setTestCaseDescriptionURL, setTestCaseId, setTestCaseName
-
Constructor Details
-
OpenMetadataTestCaseResult
public OpenMetadataTestCaseResult()Default Constructor used when converting from JSON -
OpenMetadataTestCaseResult
Constructor used when test cases are running since the superclass's properties can be extracted from the test case.- Parameters:
testCase
- running test
-
-
Method Details
-
getSuccessMessage
Return the message to confirm the successful run of the test. This property is null if the test failed.- Returns:
- string message
-
setSuccessMessage
Set up the message to confirm the successful run of the test.- Parameters:
successMessage
- string message
-
getElapsedTime
Return the elapsed time that this test case executed.- Returns:
- time in milliseconds
-
setElapsedTime
Set the elapsed time that this test case executed.- Parameters:
elapsedTime
- time in milliseconds
-
getSuccessfulAssertions
Return the list of assertions that were true when the test ran.- Returns:
- list of assertion messages
-
setSuccessfulAssertions
Set up the list of assertions that were true when the test ran.- Parameters:
successfulAssertions
- list of assertion messages
-
getUnsuccessfulAssertions
Return the list of assertions that were false when the test ran.- Returns:
- list of assertion messages
-
setUnsuccessfulAssertions
Set up the list of assertions that were false when the test ran.- Parameters:
unsuccessfulAssertions
- list of assertion messages
-
getNotSupportAssertions
Return the list of assertions for functions that correctly reported not supported.- Returns:
- list of assertion messages
-
setNotSupportedAssertions
Set up the list of assertions for functions that correctly reported not supported.- Parameters:
notSupportedAssertions
- list of assertion messages
-
getConformanceException
Return details of an unexpected exception that interrupted the test.- Returns:
- exception bean
-
setConformanceException
Set up details of an unexpected exception that interrupted the test.- Parameters:
conformanceException
- bean with exception properties
-
getDiscoveredProperties
Return the properties about the repository that were discovered during the test.- Returns:
- property map
-
setDiscoveredProperties
Set up the properties about the repository that were discovered during the test.- Parameters:
discoveredProperties
- property map
-
toString
toString() JSON-style- Overrides:
toString
in classOpenMetadataTestCaseSummary
- Returns:
- string description
-