| Package | Description |
|---|---|
| io.hgc.jarspec | |
| io.hgc.jarspec.mixins |
| Modifier and Type | Method and Description |
|---|---|
default SpecificationNode |
Specification.describe(String unit,
ByMultiple specifications) |
default SpecificationNode |
Specification.describe(String unit,
BySingle specification) |
default SpecificationNode |
Specification.describe(String unit,
SpecificationNode... specificationNodes) |
static SpecificationNode |
SpecificationNode.error(String description,
Throwable throwable)
Factory method for error nodes in the tree representing a specification,
indicating an exception thrown while building the specification tree itself.
|
SpecificationNode |
BySingle.get() |
static SpecificationNode |
SpecificationNode.internal(String description,
java.util.stream.Stream<SpecificationNode> children)
Factory method for internal nodes in the tree representing a specification.
|
default SpecificationNode |
Specification.it(String statement) |
default SpecificationNode |
Specification.it(String statement,
Test test) |
static SpecificationNode |
SpecificationNode.leaf(String description)
Factory method for leaf nodes in the tree representing a specification.
|
static SpecificationNode |
SpecificationNode.leaf(String description,
Test test)
Factory method for leaf nodes in the tree representing a specification.
|
abstract SpecificationNode |
SpecificationNode.only()
Mark this node to be run exclusively (along with its children and any other nodes similarly marked)
|
SpecificationNode |
Specification.root() |
SpecificationNode |
SpecificationNode.skip()
Mark this node to be skipped (along with its children and any other nodes similarly marked)
|
abstract SpecificationNode |
SpecificationNode.withReset(SpecificationNode.ResetSharedState reset)
Define a reset operation to clean up shared state between tests
|
| Modifier and Type | Method and Description |
|---|---|
default java.util.stream.Stream<SpecificationNode> |
Specification.byAllOf(SpecificationNode... specificationNodes)
Convenience method providing a concise syntax for combining specifications into a list
|
java.util.stream.Stream<SpecificationNode> |
ByMultiple.get() |
| Modifier and Type | Method and Description |
|---|---|
default java.util.stream.Stream<SpecificationNode> |
Specification.byAllOf(SpecificationNode... specificationNodes)
Convenience method providing a concise syntax for combining specifications into a list
|
default SpecificationNode |
Specification.describe(String unit,
SpecificationNode... specificationNodes) |
| Modifier and Type | Method and Description |
|---|---|
static SpecificationNode |
SpecificationNode.internal(String description,
java.util.stream.Stream<SpecificationNode> children)
Factory method for internal nodes in the tree representing a specification.
|
| Modifier and Type | Method and Description |
|---|---|
default <T extends Throwable> |
ExceptionBehaviour.itThrows(Class<T> throwable,
String forCase,
Test testCase)
Statement that a unit should throw a specific exception for a particular case
|
Copyright © 2017. All rights reserved.