Class STBuilder
java.lang.Object
io.nosqlbench.nb.spectest.core.STBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected List<STPathLoader> protected List<STAssemblyValidator> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondebug()matchNodes(Object... predicates) Attach aNodescanner to this spec test builder by describing the sequence of nodes which are valid, with no extra node types allowed between the specified elements.Provide additional path or paths, which can be either a readable file or a directory containing readable files or other directories.scanners(STPathLoader... scanners) Attach a set of scanners againstNodesequencesscanners(STNodePredicate predicate) validators(STAssemblyValidator... validators) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.nosqlbench.nb.spectest.api.STBuilderFacets.Done
buildMethods inherited from interface io.nosqlbench.nb.spectest.api.STBuilderFacets.WantsPaths
path, path, paths
-
Field Details
-
paths
-
scanners
-
validators
-
debug
protected boolean debug
-
-
Constructor Details
-
STBuilder
public STBuilder()
-
-
Method Details
-
paths
Description copied from interface:STBuilderFacets.WantsPathsProvide additional path or paths, which can be either a readable file or a directory containing readable files or other directories. Only files which match a markdown path with a '.md' extension will be validated.- Specified by:
pathsin interfaceSTBuilderFacets.WantsPaths- Parameters:
paths- Paths to test- Returns:
- this
STBuilderfor method chaining
-
scanners
Description copied from interface:STBuilderFacets.WantsScannersOrValidatorsAttach a set of scanners againstNodesequences- Specified by:
scannersin interfaceSTBuilderFacets.WantsScannersOrValidators- Parameters:
scanners-- Returns:
-
scanners
- Specified by:
scannersin interfaceSTBuilderFacets.WantsScannersOrValidators
-
matchNodes
Description copied from interface:STBuilderFacets.WantsScannersOrValidatorsAttach a
Nodescanner to this spec test builder by describing the sequence of nodes which are valid, with no extra node types allowed between the specified elements. This is a direct sequence matcher that is checked at each position in the parsed element stream. When a sequence is found, the search is resumed on the next element not included in the result.The predicates can be one of the types supported by
STNodePredicateandSTNodePredicates. These can be wrapped in structural predicate form by using the helpers fromSTPredicateVerbs, particularly with an import likeimport static io.nosqlbench.nb.spectest.traversal.STPredicateVerbs.*;- Specified by:
matchNodesin interfaceSTBuilderFacets.WantsScannersOrValidators- Parameters:
predicates- The pattern to match- Returns:
- this SpecTestBuilder for builder method chaining
-
validators
- Specified by:
validatorsin interfaceSTBuilderFacets.WantsValidatorsOrDone
-
debug
- Specified by:
debugin interfaceSTBuilderFacets.WantsDebuggingOptions
-