Package io.cucumber.query
Class Query
- java.lang.Object
-
- io.cucumber.query.Query
-
public final class Query extends Object
Given one Cucumber Message, find another.Queries can be made while the test run is incomplete - and this will naturally return incomplete results.
- See Also:
- Cucumber Messages - Message Overview
-
-
Constructor Summary
Constructors Constructor Description Query(Repository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<io.cucumber.messages.types.TestStepResultStatus,Long>countMostSevereTestStepResultStatus()intcountTestCasesStarted()List<io.cucumber.messages.types.Pickle>findAllPickles()List<io.cucumber.messages.types.PickleStep>findAllPickleSteps()List<io.cucumber.messages.types.TestCaseFinished>findAllTestCaseFinished()List<io.cucumber.messages.types.TestCase>findAllTestCases()List<io.cucumber.messages.types.TestCaseStarted>findAllTestCaseStarted()List<io.cucumber.messages.types.TestRunHookFinished>findAllTestRunHookFinished()List<io.cucumber.messages.types.TestRunHookStarted>findAllTestRunHookStarted()List<io.cucumber.messages.types.TestStepFinished>findAllTestStepFinished()List<io.cucumber.messages.types.TestStep>findAllTestSteps()List<io.cucumber.messages.types.TestStepStarted>findAllTestStepStarted()List<io.cucumber.messages.types.Attachment>findAttachmentsBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished)List<io.cucumber.messages.types.Attachment>findAttachmentsBy(io.cucumber.messages.types.TestStepFinished testStepFinished)Optional<io.cucumber.messages.types.Hook>findHookBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished)Optional<io.cucumber.messages.types.Hook>findHookBy(io.cucumber.messages.types.TestRunHookStarted testRunHookStarted)Optional<io.cucumber.messages.types.Hook>findHookBy(io.cucumber.messages.types.TestStep testStep)Optional<Lineage>findLineageBy(io.cucumber.messages.types.Examples element)Optional<Lineage>findLineageBy(io.cucumber.messages.types.Feature element)Optional<Lineage>findLineageBy(io.cucumber.messages.types.GherkinDocument element)Optional<Lineage>findLineageBy(io.cucumber.messages.types.Pickle pickle)Optional<Lineage>findLineageBy(io.cucumber.messages.types.Rule element)Optional<Lineage>findLineageBy(io.cucumber.messages.types.Scenario element)Optional<Lineage>findLineageBy(io.cucumber.messages.types.TableRow element)Optional<Lineage>findLineageBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)Optional<io.cucumber.messages.types.Location>findLocationOf(io.cucumber.messages.types.Pickle pickle)Optional<io.cucumber.messages.types.Meta>findMeta()Optional<io.cucumber.messages.types.TestStepResult>findMostSevereTestStepResultBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)Optional<io.cucumber.messages.types.TestStepResult>findMostSevereTestStepResultBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)Optional<io.cucumber.messages.types.Pickle>findPickleBy(io.cucumber.messages.types.TestCase testCase)Optional<io.cucumber.messages.types.Pickle>findPickleBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)Optional<io.cucumber.messages.types.Pickle>findPickleBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)Optional<io.cucumber.messages.types.Pickle>findPickleBy(io.cucumber.messages.types.TestStepFinished testStepFinished)Optional<io.cucumber.messages.types.Pickle>findPickleBy(io.cucumber.messages.types.TestStepStarted testStepStarted)Optional<io.cucumber.messages.types.PickleStep>findPickleStepBy(io.cucumber.messages.types.TestStep testStep)Optional<io.cucumber.messages.types.Step>findStepBy(io.cucumber.messages.types.PickleStep pickleStep)List<io.cucumber.messages.types.StepDefinition>findStepDefinitionsBy(io.cucumber.messages.types.TestStep testStep)List<io.cucumber.messages.types.Suggestion>findSuggestionsBy(io.cucumber.messages.types.Pickle pickle)List<io.cucumber.messages.types.Suggestion>findSuggestionsBy(io.cucumber.messages.types.PickleStep pickleStep)Optional<io.cucumber.messages.types.TestCase>findTestCaseBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)Optional<io.cucumber.messages.types.TestCase>findTestCaseBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)Optional<io.cucumber.messages.types.TestCase>findTestCaseBy(io.cucumber.messages.types.TestStepFinished testStepFinished)Optional<io.cucumber.messages.types.TestCase>findTestCaseBy(io.cucumber.messages.types.TestStepStarted testStepStarted)Optional<Duration>findTestCaseDurationBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)Optional<Duration>findTestCaseDurationBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)Optional<io.cucumber.messages.types.TestCaseFinished>findTestCaseFinishedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)Optional<io.cucumber.messages.types.TestCaseStarted>findTestCaseStartedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)Optional<io.cucumber.messages.types.TestCaseStarted>findTestCaseStartedBy(io.cucumber.messages.types.TestStepFinished testStepFinished)Optional<io.cucumber.messages.types.TestCaseStarted>findTestCaseStartedBy(io.cucumber.messages.types.TestStepStarted testStepStarted)Optional<Duration>findTestRunDuration()Optional<io.cucumber.messages.types.TestRunFinished>findTestRunFinished()Optional<io.cucumber.messages.types.TestRunHookFinished>findTestRunHookFinishedBy(io.cucumber.messages.types.TestRunHookStarted testRunHookStarted)Optional<io.cucumber.messages.types.TestRunHookStarted>findTestRunHookStartedBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished)Optional<io.cucumber.messages.types.TestRunStarted>findTestRunStarted()Optional<io.cucumber.messages.types.TestStep>findTestStepBy(io.cucumber.messages.types.TestStepFinished testStepFinished)Optional<io.cucumber.messages.types.TestStep>findTestStepBy(io.cucumber.messages.types.TestStepStarted testStepStarted)List<Map.Entry<io.cucumber.messages.types.TestStepFinished,io.cucumber.messages.types.TestStep>>findTestStepFinishedAndTestStepBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)List<io.cucumber.messages.types.TestStepFinished>findTestStepsFinishedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)List<io.cucumber.messages.types.TestStepFinished>findTestStepsFinishedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)List<io.cucumber.messages.types.TestStepStarted>findTestStepsStartedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)List<io.cucumber.messages.types.TestStepStarted>findTestStepsStartedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)Optional<io.cucumber.messages.types.StepDefinition>findUnambiguousStepDefinitionBy(io.cucumber.messages.types.TestStep testStep)
-
-
-
Constructor Detail
-
Query
public Query(Repository repository)
-
-
Method Detail
-
countMostSevereTestStepResultStatus
public Map<io.cucumber.messages.types.TestStepResultStatus,Long> countMostSevereTestStepResultStatus()
-
countTestCasesStarted
public int countTestCasesStarted()
-
findAllPickles
public List<io.cucumber.messages.types.Pickle> findAllPickles()
-
findAllPickleSteps
public List<io.cucumber.messages.types.PickleStep> findAllPickleSteps()
-
findAllTestCaseStarted
public List<io.cucumber.messages.types.TestCaseStarted> findAllTestCaseStarted()
-
findAllTestCaseFinished
public List<io.cucumber.messages.types.TestCaseFinished> findAllTestCaseFinished()
-
findAllTestSteps
public List<io.cucumber.messages.types.TestStep> findAllTestSteps()
-
findAllTestCases
public List<io.cucumber.messages.types.TestCase> findAllTestCases()
-
findAllTestStepStarted
public List<io.cucumber.messages.types.TestStepStarted> findAllTestStepStarted()
-
findAllTestStepFinished
public List<io.cucumber.messages.types.TestStepFinished> findAllTestStepFinished()
-
findAllTestRunHookStarted
public List<io.cucumber.messages.types.TestRunHookStarted> findAllTestRunHookStarted()
-
findAllTestRunHookFinished
public List<io.cucumber.messages.types.TestRunHookFinished> findAllTestRunHookFinished()
-
findAttachmentsBy
public List<io.cucumber.messages.types.Attachment> findAttachmentsBy(io.cucumber.messages.types.TestStepFinished testStepFinished)
-
findAttachmentsBy
public List<io.cucumber.messages.types.Attachment> findAttachmentsBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished)
-
findHookBy
public Optional<io.cucumber.messages.types.Hook> findHookBy(io.cucumber.messages.types.TestStep testStep)
-
findHookBy
public Optional<io.cucumber.messages.types.Hook> findHookBy(io.cucumber.messages.types.TestRunHookStarted testRunHookStarted)
-
findHookBy
public Optional<io.cucumber.messages.types.Hook> findHookBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished)
-
findMeta
public Optional<io.cucumber.messages.types.Meta> findMeta()
-
findMostSevereTestStepResultBy
public Optional<io.cucumber.messages.types.TestStepResult> findMostSevereTestStepResultBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)
-
findMostSevereTestStepResultBy
public Optional<io.cucumber.messages.types.TestStepResult> findMostSevereTestStepResultBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)
-
findLocationOf
public Optional<io.cucumber.messages.types.Location> findLocationOf(io.cucumber.messages.types.Pickle pickle)
-
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)
-
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)
-
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestCase testCase)
-
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestStepStarted testStepStarted)
-
findPickleBy
public Optional<io.cucumber.messages.types.Pickle> findPickleBy(io.cucumber.messages.types.TestStepFinished testStepFinished)
-
findPickleStepBy
public Optional<io.cucumber.messages.types.PickleStep> findPickleStepBy(io.cucumber.messages.types.TestStep testStep)
-
findSuggestionsBy
public List<io.cucumber.messages.types.Suggestion> findSuggestionsBy(io.cucumber.messages.types.PickleStep pickleStep)
-
findSuggestionsBy
public List<io.cucumber.messages.types.Suggestion> findSuggestionsBy(io.cucumber.messages.types.Pickle pickle)
-
findStepBy
public Optional<io.cucumber.messages.types.Step> findStepBy(io.cucumber.messages.types.PickleStep pickleStep)
-
findStepDefinitionsBy
public List<io.cucumber.messages.types.StepDefinition> findStepDefinitionsBy(io.cucumber.messages.types.TestStep testStep)
-
findUnambiguousStepDefinitionBy
public Optional<io.cucumber.messages.types.StepDefinition> findUnambiguousStepDefinitionBy(io.cucumber.messages.types.TestStep testStep)
-
findTestCaseBy
public Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)
-
findTestCaseBy
public Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)
-
findTestCaseBy
public Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestStepStarted testStepStarted)
-
findTestCaseBy
public Optional<io.cucumber.messages.types.TestCase> findTestCaseBy(io.cucumber.messages.types.TestStepFinished testStepFinished)
-
findTestCaseDurationBy
public Optional<Duration> findTestCaseDurationBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)
-
findTestCaseDurationBy
public Optional<Duration> findTestCaseDurationBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)
-
findTestCaseStartedBy
public Optional<io.cucumber.messages.types.TestCaseStarted> findTestCaseStartedBy(io.cucumber.messages.types.TestStepStarted testStepStarted)
-
findTestCaseStartedBy
public Optional<io.cucumber.messages.types.TestCaseStarted> findTestCaseStartedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)
-
findTestCaseStartedBy
public Optional<io.cucumber.messages.types.TestCaseStarted> findTestCaseStartedBy(io.cucumber.messages.types.TestStepFinished testStepFinished)
-
findTestCaseFinishedBy
public Optional<io.cucumber.messages.types.TestCaseFinished> findTestCaseFinishedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)
-
findTestRunHookFinishedBy
public Optional<io.cucumber.messages.types.TestRunHookFinished> findTestRunHookFinishedBy(io.cucumber.messages.types.TestRunHookStarted testRunHookStarted)
-
findTestRunHookStartedBy
public Optional<io.cucumber.messages.types.TestRunHookStarted> findTestRunHookStartedBy(io.cucumber.messages.types.TestRunHookFinished testRunHookFinished)
-
findTestRunFinished
public Optional<io.cucumber.messages.types.TestRunFinished> findTestRunFinished()
-
findTestRunStarted
public Optional<io.cucumber.messages.types.TestRunStarted> findTestRunStarted()
-
findTestStepBy
public Optional<io.cucumber.messages.types.TestStep> findTestStepBy(io.cucumber.messages.types.TestStepStarted testStepStarted)
-
findTestStepBy
public Optional<io.cucumber.messages.types.TestStep> findTestStepBy(io.cucumber.messages.types.TestStepFinished testStepFinished)
-
findTestStepsStartedBy
public List<io.cucumber.messages.types.TestStepStarted> findTestStepsStartedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)
-
findTestStepsStartedBy
public List<io.cucumber.messages.types.TestStepStarted> findTestStepsStartedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)
-
findTestStepsFinishedBy
public List<io.cucumber.messages.types.TestStepFinished> findTestStepsFinishedBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)
-
findTestStepsFinishedBy
public List<io.cucumber.messages.types.TestStepFinished> findTestStepsFinishedBy(io.cucumber.messages.types.TestCaseFinished testCaseFinished)
-
findTestStepFinishedAndTestStepBy
public List<Map.Entry<io.cucumber.messages.types.TestStepFinished,io.cucumber.messages.types.TestStep>> findTestStepFinishedAndTestStepBy(io.cucumber.messages.types.TestCaseStarted testCaseStarted)
-
findLineageBy
public Optional<Lineage> findLineageBy(io.cucumber.messages.types.GherkinDocument element)
-
-