Class CasesTable.CaseRow

java.lang.Object
com.tngtech.jgiven.report.model.CasesTable.CaseRow
Enclosing class:
CasesTable

public static class CasesTable.CaseRow extends Object
Represents one case of a scenario.
  • Constructor Details

    • CaseRow

      public CaseRow(int rowNumber, String description, List<String> arguments, ExecutionStatus executionStatus, long durationInNanos, String errorMessage, List<String> stackTrace)
      Create a new row representing a single ScenarioCaseModel.
      Parameters:
      rowNumber - the case number
      description - the case's description
      arguments - the case's arguments
      executionStatus - the case's execution result
      durationInNanos - the duration it took to execute the case
      errorMessage - the case's error message if any
      stackTrace - the case's stackTrace if any
  • Method Details

    • rowNumber

      public int rowNumber()
      The row number starting from 1.
    • description

      public Optional<String> description()
      The case description.
    • arguments

      public List<String> arguments()
      The argument values of the case.
    • status

      public ExecutionStatus status()
      The execution status of the case.
    • durationInNanos

      public long durationInNanos()
      The duration of the case.
    • errorMessage

      public Optional<String> errorMessage()
      The error message of the case if any.
    • stackTrace

      public List<String> stackTrace()
      The stack trace of the case if any.