java.lang.Object
io.cucumber.query.Repository
A write only repository of Cucumber Messages.
This class is effectively a simple in memory database. It can be updated in
through the update(Envelope) method, and be queried by Query.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<Repository.RepositoryFeature> (package private) @Nullable io.cucumber.messages.types.Meta(package private) @Nullable io.cucumber.messages.types.TestRunFinished(package private) @Nullable io.cucumber.messages.types.TestRunStarted(package private) final List<io.cucumber.messages.types.UndefinedParameterType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Repository.Builderbuilder()voidupdate(io.cucumber.messages.types.Envelope envelope) private voidupdateAttachment(io.cucumber.messages.types.Attachment attachment) private voidupdateFeature(io.cucumber.messages.types.Feature feature) private voidupdateGherkinDocument(io.cucumber.messages.types.GherkinDocument document) private voidupdateHook(io.cucumber.messages.types.Hook hook) private <K,E> BiFunction <K, List<E>, List<E>> updateList(E element) private voidupdateMeta(io.cucumber.messages.types.Meta event) private voidupdatePickle(io.cucumber.messages.types.Pickle event) private voidupdateScenario(io.cucumber.messages.types.Scenario scenario) private voidupdateStepDefinition(io.cucumber.messages.types.StepDefinition event) private voidupdateSteps(List<io.cucumber.messages.types.Step> steps) private voidupdateSuggestions(io.cucumber.messages.types.Suggestion event) private voidupdateTestCase(io.cucumber.messages.types.TestCase event) private voidupdateTestCaseFinished(io.cucumber.messages.types.TestCaseFinished event) private voidupdateTestCaseStarted(io.cucumber.messages.types.TestCaseStarted testCaseStarted) private voidupdateTestRunFinished(io.cucumber.messages.types.TestRunFinished event) private voidupdateTestRunHookFinished(io.cucumber.messages.types.TestRunHookFinished event) private voidupdateTestRunHookStarted(io.cucumber.messages.types.TestRunHookStarted event) private voidupdateTestRunStarted(io.cucumber.messages.types.TestRunStarted event) private voidupdateTestStepFinished(io.cucumber.messages.types.TestStepFinished event) private voidupdateTestStepStarted(io.cucumber.messages.types.TestStepStarted event) private voidupdateUndefinedParameterType(io.cucumber.messages.types.UndefinedParameterType event)
-
Field Details
-
features
-
testCaseStartedById
-
testCaseFinishedByTestCaseStartedId
-
testStepsFinishedByTestCaseStartedId
-
testStepsStartedByTestCaseStartedId
-
testRunHookStartedById
-
testRunHookFinishedByTestRunHookStartedId
-
pickleById
-
testCaseById
-
stepById
-
testStepById
-
pickleStepById
-
hookById
-
attachmentsByTestCaseStartedId
-
attachmentsByTestRunHookStartedId
-
lineageById
-
stepDefinitionById
-
suggestionsByPickleStepId
-
undefinedParameterTypes
-
meta
@Nullable io.cucumber.messages.types.Meta meta -
testRunStarted
@Nullable io.cucumber.messages.types.TestRunStarted testRunStarted -
testRunFinished
@Nullable io.cucumber.messages.types.TestRunFinished testRunFinished
-
-
Constructor Details
-
Repository
-
-
Method Details
-
builder
-
update
public void update(io.cucumber.messages.types.Envelope envelope) -
updateAttachment
private void updateAttachment(io.cucumber.messages.types.Attachment attachment) -
updateHook
private void updateHook(io.cucumber.messages.types.Hook hook) -
updateTestCaseStarted
private void updateTestCaseStarted(io.cucumber.messages.types.TestCaseStarted testCaseStarted) -
updateTestCase
private void updateTestCase(io.cucumber.messages.types.TestCase event) -
updatePickle
private void updatePickle(io.cucumber.messages.types.Pickle event) -
updateGherkinDocument
private void updateGherkinDocument(io.cucumber.messages.types.GherkinDocument document) -
updateFeature
private void updateFeature(io.cucumber.messages.types.Feature feature) -
updateTestStepStarted
private void updateTestStepStarted(io.cucumber.messages.types.TestStepStarted event) -
updateTestStepFinished
private void updateTestStepFinished(io.cucumber.messages.types.TestStepFinished event) -
updateTestCaseFinished
private void updateTestCaseFinished(io.cucumber.messages.types.TestCaseFinished event) -
updateTestRunFinished
private void updateTestRunFinished(io.cucumber.messages.types.TestRunFinished event) -
updateTestRunStarted
private void updateTestRunStarted(io.cucumber.messages.types.TestRunStarted event) -
updateTestRunHookStarted
private void updateTestRunHookStarted(io.cucumber.messages.types.TestRunHookStarted event) -
updateTestRunHookFinished
private void updateTestRunHookFinished(io.cucumber.messages.types.TestRunHookFinished event) -
updateScenario
private void updateScenario(io.cucumber.messages.types.Scenario scenario) -
updateStepDefinition
private void updateStepDefinition(io.cucumber.messages.types.StepDefinition event) -
updateSteps
-
updateSuggestions
private void updateSuggestions(io.cucumber.messages.types.Suggestion event) -
updateMeta
private void updateMeta(io.cucumber.messages.types.Meta event) -
updateUndefinedParameterType
private void updateUndefinedParameterType(io.cucumber.messages.types.UndefinedParameterType event) -
updateList
-