Class ResultMatch
- java.lang.Object
-
- com.trivago.cluecumber.engine.json.pojo.ResultMatch
-
-
Constructor Summary
Constructors Constructor Description ResultMatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.trivago.cluecumber.engine.json.pojo.Argument>getArguments()Get the arguments of the glue method.StatusgetConsolidatedStatus()Get the basic status (passed, failed, skipped).StringgetConsolidatedStatusString()Get the string of the basic status.List<Embedding>getEmbeddings()Get the attachments.StringgetGlueMethodName()Get the name of the glue method.MatchgetMatch()Get the match.List<String>getOutput()Get the output strings.ResultgetResult()Get the result.StatusgetStatus()Get the status.StringgetStatusString()Get the string value of the status.booleanhasContent()Check if there are outputs or attachments.booleanhasEmbeddings()Check if there are attachments.booleanhasOutputs()Check if outputs exist.booleanisFailed()Check if the status is failed.booleanisPassed()Check if the status is passed.booleanisSkipped()Check if the status is skipped.voidsetEmbeddings(List<Embedding> embeddings)Set the attachments.voidsetMatch(Match match)Set the match.voidsetOutput(List<String> output)Set the output strings.voidsetResult(Result result)Set the result.
-
-
-
Method Detail
-
setResult
public void setResult(Result result)
Set the result.- Parameters:
result- TheResultinstance.
-
getEmbeddings
public List<Embedding> getEmbeddings()
Get the attachments.- Returns:
- The
Embeddinglist.
-
setEmbeddings
public void setEmbeddings(List<Embedding> embeddings)
Set the attachments.- Parameters:
embeddings- TheEmbeddinglist.
-
hasEmbeddings
public boolean hasEmbeddings()
Check if there are attachments.- Returns:
- true if attachments exist.
-
getOutput
public List<String> getOutput()
Get the output strings.- Returns:
- The list of attached strings.
-
setOutput
public void setOutput(List<String> output)
Set the output strings.- Parameters:
output- The list of attached strings.
-
hasOutputs
public boolean hasOutputs()
Check if outputs exist.- Returns:
- true if outputs exist.
-
getGlueMethodName
public String getGlueMethodName()
Get the name of the glue method.- Returns:
- The method name.
-
getArguments
public List<com.trivago.cluecumber.engine.json.pojo.Argument> getArguments()
Get the arguments of the glue method.- Returns:
- The
Argumentlist.
-
getStatusString
public String getStatusString()
Get the string value of the status.- Returns:
- The status string.
-
isFailed
public boolean isFailed()
Check if the status is failed.- Returns:
- true if it is failed.
-
isPassed
public boolean isPassed()
Check if the status is passed.- Returns:
- true if it is passed.
-
isSkipped
public boolean isSkipped()
Check if the status is skipped.- Returns:
- true if it is skipped.
-
hasContent
public boolean hasContent()
Check if there are outputs or attachments.- Returns:
- true if there is content.
-
getConsolidatedStatus
public Status getConsolidatedStatus()
Get the basic status (passed, failed, skipped).- Returns:
- The basic
Statusenum.
-
getConsolidatedStatusString
public String getConsolidatedStatusString()
Get the string of the basic status.- Returns:
- The basic status string representation.
-
-