|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
InjectableStepsFactory
that is provided
by concrete subclasses Object instances which contain the candidate steps
methods.Runner
that uses the AnnotationBuilder
to
create an embeddable test instance.Configuration
, CandidateSteps
and
Embedder
from an annotated class.BeforeStory
, AfterStory
, BeforeScenario
or
AfterScenario
in a CandidatesSteps
instance class.UsingSteps
found in the
annotated object instance and using the configuration build by
AnnotationBuilder.buildConfiguration()
UsingSteps
found in the
annotated object instance and the configuration provided
Configure
found in the annotated object instance
@Given
, @When
or @Then
that can be matched.CandidateSteps
instances.
Embeddable
which allow to configure
the Embedder
used to run the story or stories, using the
Configuration
and the CandidateSteps
specified.Embedder
and the in the
Embeddable
implementations to customise its runtime properties.PropertyBasedConfiguration.SILENT_SUCCESS
is set, uses a
SilentSuccessFilter
to decorate the default StoryReporter.
StoryReporter
s and delegates all
invocations to the collected reporters.Embedder
.PrintStream
instances that write to a file identified by the
StoryLocation
.Stepdoc
s, for a given
textual step and a list of CandidateSteps
.
ViewGenerator
, using the file outputs of the
reporters for the given formats.Class
containing at least one method
annotated with annotations from package "org.jbehave.core.annotations".
Embeddable
which allows to inject
the Embedder
used to run the story or stories.CandidateSteps
.InjectableStepsFactory
that is provided Object instances.JUnitStories.storyPaths()
.Embeddable
class.Keywords.defaultKeywords()
LoadFromRelativeFile
, to
allow a range of possibilities for locating Story file pathsAbstractStepResult.Pending
.FilePrintStreamFactory.FilePathResolver
FilePrintStreamFactory.FilePathResolver
Date
using an injectable DateFormat
(defaults to new SimpleDateFormat("dd/MM/yyyy"))ExamplesTable
Number
(including generic Number type), and it unboxed counterpart, using a
NumberFormat
to parse to a Number
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 to
NumberFormat.getInstance()
.PropertyBasedConfiguration.FAIL_ON_PENDING
is set, returns
FailingUponPendingStep
otherwise returns the default.
PrintStream
, defaulting to
System.out
PrintStream
instances.PrintStream
, defaulting to
System.out
.PropertyBasedConfiguration.FAIL_ON_PENDING
: uses FailingUponPendingStep
PropertyBasedConfiguration.SILENT_SUCCESS
: uses SilentSuccessFilter
decorator
Story
.PrintStream
only failure eventsCandidateSteps
instances.Given
,
When
, Then
in a steps instance class.Step
s from a
given story or scenario matching a list of CandidateSteps
.StepCandidate
,
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 class
CandidateSteps
.
Throwable
that caused the failure is wrapped
in a StepFailed
together with the step during which the failure
occurred.CandidateSteps
, which are created using
an InjectableStepsFactory
.StepFinder.ByPriorityField
strategy
StepCandidate.getPriority()
field which is settable in the
Given
, When
, Then
annotations.StepMatcher
which will in turn match textual steps conforming to the pattern.CandidateSteps
which provides the step
candidates that match the steps being run.Embeddable
class to a resource
path.StoryReporter
s.Story
, given a Configuration
and a list of CandidateSteps
,
describing the results to the StoryReporter
.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |