Class TestExecutionReport
- java.lang.Object
-
- cloud.filibuster.junit.server.core.reports.TestExecutionReport
-
public class TestExecutionReport extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestExecutionReport.FailureMetadata
-
Field Summary
Fields Modifier and Type Field Description static java.util.ArrayList<java.lang.Class<? extends TestExecutionReportAnalyzer>>testExecutionReportAnalyzers
-
Constructor Summary
Constructors Constructor Description TestExecutionReport(java.lang.String testName, java.util.UUID testUuid, java.lang.String className)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddAnalyzer(java.lang.Class<? extends TestExecutionReportAnalyzer> clazz)java.util.List<DistributedExecutionIndex>getCachedRpcs()java.lang.StringgetClassName()java.util.List<TestExecutionReport.FailureMetadata>getFailures()org.json.JSONObjectgetFaultObject(DistributedExecutionIndex distributedExecutionIndex)java.lang.StringgetFaultsInjected()org.json.JSONObjectgetInvocationObject(DistributedExecutionIndex distributedExecutionIndex)java.util.Iterator<DistributedExecutionIndex>getInvocationOrderIterator()MaterializedTestExecutionReportMetadatagetMaterializedReportMetadata()org.json.JSONObjectgetResponseObject(DistributedExecutionIndex distributedExecutionIndex)java.util.Map<DistributedExecutionIndex,org.json.JSONObject>getResponses()java.lang.StringgetTestName()java.util.UUIDgetTestUuid()java.util.List<FilibusterAnalyzerWarning>getWarnings()booleanisTestExecutionPassed()voidmarkRpcAsCached(DistributedExecutionIndex distributedExecutionIndex)voidrecordInvocation(DistributedExecutionIndex distributedExecutionIndex, org.json.JSONObject invocationJsonObject)voidrecordInvocationComplete(DistributedExecutionIndex distributedExecutionIndex, org.json.JSONObject invocationJsonObject)voidsetFaultsInjected(java.util.Map<DistributedExecutionIndex,org.json.JSONObject> faultsToInject)voidwritePlaceholderTestReport()voidwriteTestReport(int currentIteration, boolean exceptionOccurred, java.lang.Throwable throwable)
-
-
-
Field Detail
-
testExecutionReportAnalyzers
public static java.util.ArrayList<java.lang.Class<? extends TestExecutionReportAnalyzer>> testExecutionReportAnalyzers
-
-
Method Detail
-
isTestExecutionPassed
public boolean isTestExecutionPassed()
-
getWarnings
public java.util.List<FilibusterAnalyzerWarning> getWarnings()
-
getInvocationOrderIterator
public java.util.Iterator<DistributedExecutionIndex> getInvocationOrderIterator()
-
getInvocationObject
public org.json.JSONObject getInvocationObject(DistributedExecutionIndex distributedExecutionIndex)
-
getResponseObject
public org.json.JSONObject getResponseObject(DistributedExecutionIndex distributedExecutionIndex)
-
getResponses
public java.util.Map<DistributedExecutionIndex,org.json.JSONObject> getResponses()
-
getFaultObject
public org.json.JSONObject getFaultObject(DistributedExecutionIndex distributedExecutionIndex)
-
getCachedRpcs
public java.util.List<DistributedExecutionIndex> getCachedRpcs()
-
markRpcAsCached
public void markRpcAsCached(DistributedExecutionIndex distributedExecutionIndex)
-
recordInvocation
public void recordInvocation(DistributedExecutionIndex distributedExecutionIndex, org.json.JSONObject invocationJsonObject)
-
recordInvocationComplete
public void recordInvocationComplete(DistributedExecutionIndex distributedExecutionIndex, org.json.JSONObject invocationJsonObject)
-
setFaultsInjected
public void setFaultsInjected(java.util.Map<DistributedExecutionIndex,org.json.JSONObject> faultsToInject)
-
getTestName
public java.lang.String getTestName()
-
getTestUuid
public java.util.UUID getTestUuid()
-
getClassName
public java.lang.String getClassName()
-
addAnalyzer
public static void addAnalyzer(java.lang.Class<? extends TestExecutionReportAnalyzer> clazz)
-
writePlaceholderTestReport
public void writePlaceholderTestReport()
-
writeTestReport
public void writeTestReport(int currentIteration, boolean exceptionOccurred, @Nullable java.lang.Throwable throwable)
-
getMaterializedReportMetadata
public MaterializedTestExecutionReportMetadata getMaterializedReportMetadata()
-
getFailures
public java.util.List<TestExecutionReport.FailureMetadata> getFailures()
-
getFaultsInjected
public java.lang.String getFaultsInjected()
-
-