Class FVTResults
java.lang.Object
org.odpi.openmetadata.fvt.utilities.FVTResults
FVTResults holds the results from running a number of FVT tests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCapturedError
(Exception exception) Save an unexpected exception that occurred during the tests.Return the audit log for the client.Return the list of captured exceptions (should be empty).int
Retrieve the number of successful tests (should match the number of tests).int
Retrieve the number of test run.void
Increment the number of successful tests.void
Increment the test count.boolean
Return whether the results are successful or notvoid
printResults
(String serverName) Print out results.
-
Constructor Details
-
FVTResults
Set up the results for a specific test case- Parameters:
testCaseName
- unique name for test
-
-
Method Details
-
incrementNumberOfTests
public void incrementNumberOfTests()Increment the test count. -
incrementNumberOfSuccesses
public void incrementNumberOfSuccesses()Increment the number of successful tests. -
addCapturedError
Save an unexpected exception that occurred during the tests.- Parameters:
exception
- unexpected exception
-
getNumberOfTests
public int getNumberOfTests()Retrieve the number of test run.- Returns:
- int
-
getNumberOfSuccesses
public int getNumberOfSuccesses()Retrieve the number of successful tests (should match the number of tests).- Returns:
- int
-
getCapturedErrors
Return the list of captured exceptions (should be empty).- Returns:
- list of exceptions
-
getAuditLogDestination
Return the audit log for the client.- Returns:
- destination containing all of the log records.
-
isSuccessful
public boolean isSuccessful()Return whether the results are successful or not- Returns:
- boolean flag
-
printResults
Print out results.- Parameters:
serverName
- calling server
-