Class FVTResults
java.lang.Object
org.odpi.openmetadata.fvt.utilities.FVTResults
FVTResults holds the results from running a number of FVT tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCapturedError(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).intRetrieve the number of successful tests (should match the number of tests).intRetrieve the number of test run.voidIncrement the number of successful tests.voidIncrement the test count.booleanReturn whether the results are successful or notvoidprintResults(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
-