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 class
TestExecutionReport.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 void
addAnalyzer(java.lang.Class<? extends TestExecutionReportAnalyzer> clazz)
java.util.List<DistributedExecutionIndex>
getCachedRpcs()
java.lang.String
getClassName()
java.util.List<TestExecutionReport.FailureMetadata>
getFailures()
org.json.JSONObject
getFaultObject(DistributedExecutionIndex distributedExecutionIndex)
java.lang.String
getFaultsInjected()
org.json.JSONObject
getInvocationObject(DistributedExecutionIndex distributedExecutionIndex)
java.util.Iterator<DistributedExecutionIndex>
getInvocationOrderIterator()
MaterializedTestExecutionReportMetadata
getMaterializedReportMetadata()
org.json.JSONObject
getResponseObject(DistributedExecutionIndex distributedExecutionIndex)
java.util.Map<DistributedExecutionIndex,org.json.JSONObject>
getResponses()
java.lang.String
getTestName()
java.util.UUID
getTestUuid()
java.util.List<FilibusterAnalyzerWarning>
getWarnings()
boolean
isTestExecutionPassed()
void
markRpcAsCached(DistributedExecutionIndex distributedExecutionIndex)
void
recordInvocation(DistributedExecutionIndex distributedExecutionIndex, org.json.JSONObject invocationJsonObject)
void
recordInvocationComplete(DistributedExecutionIndex distributedExecutionIndex, org.json.JSONObject invocationJsonObject)
void
setFaultsInjected(java.util.Map<DistributedExecutionIndex,org.json.JSONObject> faultsToInject)
void
writePlaceholderTestReport()
void
writeTestReport(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()
-
-