Package com.tngtech.jgiven.report.model
Class CasesTable.CaseRow
- java.lang.Object
-
- com.tngtech.jgiven.report.model.CasesTable.CaseRow
-
- Enclosing class:
- CasesTable
public static class CasesTable.CaseRow extends java.lang.Object
Represents one case of a scenario.
-
-
Constructor Summary
Constructors Constructor Description CaseRow(int rowNumber, java.lang.String description, java.util.List<java.lang.String> arguments, ExecutionStatus executionStatus, long durationInNanos, java.lang.String errorMessage, java.util.List<java.lang.String> stackTrace)
Create a new row representing a single ScenarioCaseModel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
arguments()
The argument values of the case.java.util.Optional<java.lang.String>
description()
The case description.long
durationInNanos()
The duration of the case.java.util.Optional<java.lang.String>
errorMessage()
The error message of the case if any.int
rowNumber()
The row number starting from 1.java.util.List<java.lang.String>
stackTrace()
The stack trace of the case if any.ExecutionStatus
status()
The execution status of the case.
-
-
-
Constructor Detail
-
CaseRow
public CaseRow(int rowNumber, java.lang.String description, java.util.List<java.lang.String> arguments, ExecutionStatus executionStatus, long durationInNanos, java.lang.String errorMessage, java.util.List<java.lang.String> stackTrace)
Create a new row representing a single ScenarioCaseModel.- Parameters:
rowNumber
- the case numberdescription
- the case's descriptionarguments
- the case's argumentsexecutionStatus
- the case's execution resultdurationInNanos
- the duration it took to execute the caseerrorMessage
- the case's error message if anystackTrace
- the case's stackTrace if any
-
-
Method Detail
-
rowNumber
public int rowNumber()
The row number starting from 1.
-
description
public java.util.Optional<java.lang.String> description()
The case description.
-
arguments
public java.util.List<java.lang.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 java.util.Optional<java.lang.String> errorMessage()
The error message of the case if any.
-
stackTrace
public java.util.List<java.lang.String> stackTrace()
The stack trace of the case if any.
-
-