public final class Test
extends java.lang.Object
A Test is usually created by calling Cuppa.it(String) but can be constructed
directly.
| Modifier and Type | Field and Description |
|---|---|
Behaviour |
behaviour
Controls how the test behaves.
|
java.lang.String |
description
The description of the test.
|
java.util.Optional<TestFunction> |
function
The body of the test.
|
Options |
options
The set of options applied to the test.
|
java.lang.Class<?> |
testClass
The class that the test was defined in.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
TestBuilder |
toBuilder()
Creates a
TestBuilder and initialises it's properties to this Test. |
java.lang.String |
toString() |
public final Behaviour behaviour
public final java.lang.Class<?> testClass
public final java.lang.String description
public final java.util.Optional<TestFunction> function
Optional is empty the test is classified as pending.public final Options options
public TestBuilder toBuilder()
TestBuilder and initialises it's properties to this Test.TestBuilder.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object