Class ResultMatch

  • Direct Known Subclasses:
    Step

    public class ResultMatch
    extends Object
    The result collection that is used for steps, hooks, scenarios and features.
    • Constructor Detail

      • ResultMatch

        public ResultMatch()
    • Method Detail

      • getResult

        public Result getResult()
        Get the result.
        Returns:
        The Result instance.
      • setResult

        public void setResult​(Result result)
        Set the result.
        Parameters:
        result - The Result instance.
      • getMatch

        public Match getMatch()
        Get the match.
        Returns:
        The Match instance.
      • setMatch

        public void setMatch​(Match match)
        Set the match.
        Parameters:
        match - The Match instance.
      • setEmbeddings

        public void setEmbeddings​(List<Embedding> embeddings)
        Set the attachments.
        Parameters:
        embeddings - The Embedding list.
      • 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<Argument> getArguments()
        Get the arguments of the glue method.
        Returns:
        The Argument list.
      • getStatus

        public Status getStatus()
        Get the status.
        Returns:
        The Status enum.
      • 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 Status enum.
      • getConsolidatedStatusString

        public String getConsolidatedStatusString()
        Get the string of the basic status.
        Returns:
        The basic status string representation.