Package org.jbehave.core.steps
package org.jbehave.core.steps
-
ClassDescriptionRepresents the possible step results: Failed NotPerformed Pending Successful Ignorable SkippedAn abstract implementation of
InjectableStepsFactory
that is provided by concrete subclasses Object instances which contain the candidate steps methods.A BeforeOrAfterStep is associated to a Java method annotated withBeforeStory
,AfterStory
,BeforeScenario
orAfterScenario
in aCandidateSteps
instance class.Implementation of Row that chains delegate Rows in resolving requests for values.AnInjectableStepsFactory
that composesCandidateSteps
created from other factories.Decorator ofStepMonitor
which shows the current context via theContextView
.Implementation of Parameters that usesParameterConverters
to convert values.Monitor which collects otherStepMonitor
s and delegates all invocations to the collected monitors.Interface abstracting the creation ofCandidateSteps
.AnInjectableStepsFactory
that is provided Object instances.StepCollector that marks unmatched steps asAbstractStepResult.Pending
.Null Object Pattern implementation ofStepMonitor
.Facade responsible for converting parameter values to Java objects.Parses value to aDate
using an injectableDateFormat
(defaults to new SimpleDateFormat("dd/MM/yyyy"))Parses value to anyEnum
Parses value to list of the sameEnum
, using an injectable value separator (defaults to ",") and trimming each element of the list.Converts value toExamplesTable
using aExamplesTableFactory
.Converts ExamplesTable to list of parameters, mapped to annotated custom types.AnParameterConverters.EnumConverter
allowing stories prose to be more natural.Invokes method on instance to return value.Converts values to numbers, supporting any subclass ofNumber
(including generic Number type), and it unboxed counterpart, using aNumberFormat
to parse to aNumber
and to convert it to a specific number type: Byte, byte:Number.byteValue()
Short, short:Number.shortValue()
Integer, int:Number.intValue()
Float, float:Number.floatValue()
Long, long:Number.longValue()
Double, double:Number.doubleValue()
BigInteger:BigInteger.valueOf(long)
BigDecimal:BigDecimal.valueOf(double)
If no number format is provided, it defaults toNumberFormat.getInstance()
.Converts value to list of numbers.A parameter converter for generic type of source input and target output.Converts value to list of String.Provides parameter values as given typesBuilds a set of pattern variants of given pattern input, supporting a custom directives.AbstractStepMonitor
that prints to output which should be defined in child implementations.StepMonitor that prints to aPrintStream
, defaulting toSystem.out
.AnInjectableStepsFactory
that is provided with theCandidateSteps
instances.Represents a row in anExamplesTable
.AnInjectableStepsFactory
that scans for classes in the classpath.StepMonitor that prints nothings.A Step represents a runnable portion of a Scenario, which matches methods annotated inCandidateSteps
instances.Represents the strategy for the collection of executableStep
s from a story or scenario matching a list ofStepCandidate
s.This is a different class, because the @Inject jar may not be in the classpath.A Stepdoc represents the documentation on a singleStepCandidate
, which includes: the step type the pattern to match the step candidate that is configured in the annotation the method in the steps instance class the steps instance classStepFinder is reponsible for finding and prioritising step candidates or finding steps instances fromCandidateSteps
, which are created using anInjectableStepsFactory
.Strategy to priorise candidate steps by Levenshtein DistanceStrategy to priorise step candidates by theStepCandidate.getPriority()
field which is settable in theGiven
,When
,Then
annotations.Defines the priorising strategy of step candidatesInterface to monitor step eventsDefault implementation ofCandidateSteps
which provides the step candidates that match the steps being run.Enum representing the step types