Class Repository

java.lang.Object
io.cucumber.query.Repository

public final class Repository extends Object
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.

  • Field Details

    • features

      private final Set<Repository.RepositoryFeature> features
    • testCaseStartedById

      final Map<String,io.cucumber.messages.types.TestCaseStarted> testCaseStartedById
    • testCaseFinishedByTestCaseStartedId

      final Map<String,io.cucumber.messages.types.TestCaseFinished> testCaseFinishedByTestCaseStartedId
    • testStepsFinishedByTestCaseStartedId

      final Map<String,List<io.cucumber.messages.types.TestStepFinished>> testStepsFinishedByTestCaseStartedId
    • testStepsStartedByTestCaseStartedId

      final Map<String,List<io.cucumber.messages.types.TestStepStarted>> testStepsStartedByTestCaseStartedId
    • testRunHookStartedById

      final Map<String,io.cucumber.messages.types.TestRunHookStarted> testRunHookStartedById
    • testRunHookFinishedByTestRunHookStartedId

      final Map<String,io.cucumber.messages.types.TestRunHookFinished> testRunHookFinishedByTestRunHookStartedId
    • pickleById

      final Map<String,io.cucumber.messages.types.Pickle> pickleById
    • testCaseById

      final Map<String,io.cucumber.messages.types.TestCase> testCaseById
    • stepById

      final Map<String,io.cucumber.messages.types.Step> stepById
    • testStepById

      final Map<String,io.cucumber.messages.types.TestStep> testStepById
    • pickleStepById

      final Map<String,io.cucumber.messages.types.PickleStep> pickleStepById
    • hookById

      final Map<String,io.cucumber.messages.types.Hook> hookById
    • attachmentsByTestCaseStartedId

      final Map<String,List<io.cucumber.messages.types.Attachment>> attachmentsByTestCaseStartedId
    • attachmentsByTestRunHookStartedId

      final Map<String,List<io.cucumber.messages.types.Attachment>> attachmentsByTestRunHookStartedId
    • lineageById

      final Map<Object,Lineage> lineageById
    • stepDefinitionById

      final Map<String,io.cucumber.messages.types.StepDefinition> stepDefinitionById
    • suggestionsByPickleStepId

      final Map<String,List<io.cucumber.messages.types.Suggestion>> suggestionsByPickleStepId
    • undefinedParameterTypes

      final List<io.cucumber.messages.types.UndefinedParameterType> 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

  • Method Details

    • builder

      public static Repository.Builder 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

      private void updateSteps(List<io.cucumber.messages.types.Step> steps)
    • 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

      private <K, E> BiFunction<K,List<E>,List<E>> updateList(E element)