Class FVTResults
- java.lang.Object
-
- org.odpi.openmetadata.fvt.utilities.FVTResults
-
public class FVTResults extends Object
FVTResults holds the results from running a number of FVT tests.
-
-
Constructor Summary
Constructors Constructor Description FVTResults(String testCaseName)Set up the results for a specific test case
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCapturedError(Exception exception)Save an unexpected exception that occurred during the tests.FVTAuditLogDestinationgetAuditLogDestination()Return the audit log for the client.List<Exception>getCapturedErrors()Return the list of captured exceptions (should be empty).intgetNumberOfSuccesses()Retrieve the number of successful tests (should match the number of tests).intgetNumberOfTests()Retrieve the number of test run.voidincrementNumberOfSuccesses()Increment the number of successful tests.voidincrementNumberOfTests()Increment the test count.booleanisSuccessful()Return whether the results are successful or notvoidprintResults()Print out results
-
-
-
Constructor Detail
-
FVTResults
public FVTResults(String testCaseName)
Set up the results for a specific test case- Parameters:
testCaseName- unique name for test
-
-
Method Detail
-
incrementNumberOfTests
public void incrementNumberOfTests()
Increment the test count.
-
incrementNumberOfSuccesses
public void incrementNumberOfSuccesses()
Increment the number of successful tests.
-
addCapturedError
public void addCapturedError(Exception exception)
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
public List<Exception> getCapturedErrors()
Return the list of captured exceptions (should be empty).- Returns:
- list of exceptions
-
getAuditLogDestination
public FVTAuditLogDestination 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
public void printResults()
Print out results
-
-