Class TestCase

java.lang.Object
io.cucumber.core.runner.TestCase
All Implemented Interfaces:
TestCase

final class TestCase extends Object implements TestCase
  • Field Details

  • Constructor Details

  • Method Details

    • makeMessageGroup

      private static io.cucumber.messages.types.Group makeMessageGroup(Group group)
    • run

      void run(EventBus bus)
    • getLine

      @Deprecated public Integer getLine()
      Deprecated.
      Description copied from interface: TestCase
      Returns the line of this Scenario in the feature file. If this Scenario is an example in a Scenario Outline the method wil return the line of the example.
      Specified by:
      getLine in interface TestCase
      Returns:
      the line of this scenario.
    • getLocation

      public Location getLocation()
      Description copied from interface: TestCase
      Returns the location of this Scenario in the feature file. If this Scenario is an example in a Scenario Outline the method wil return the location of the example.
      Specified by:
      getLocation in interface TestCase
      Returns:
      the location of this scenario.
    • getKeyword

      public String getKeyword()
      Specified by:
      getKeyword in interface TestCase
    • getName

      public String getName()
      Specified by:
      getName in interface TestCase
    • getScenarioDesignation

      @Deprecated public String getScenarioDesignation()
      Deprecated.
      Specified by:
      getScenarioDesignation in interface TestCase
    • fileColonLine

      private String fileColonLine(Integer line)
    • getLanguage

      public String getLanguage()
      Specified by:
      getLanguage in interface TestCase
    • getTags

      public List<String> getTags()
      Specified by:
      getTags in interface TestCase
    • getTestSteps

      public List<TestStep> getTestSteps()
      Specified by:
      getTestSteps in interface TestCase
    • getUri

      public URI getUri()
      Specified by:
      getUri in interface TestCase
    • getId

      public UUID getId()
      Specified by:
      getId in interface TestCase
    • emitTestCaseMessage

      private void emitTestCaseMessage(EventBus bus)
    • createTestStep

      private io.cucumber.messages.types.TestStep createTestStep(TestStep pluginTestStep)
    • getStepMatchArguments

      public List<io.cucumber.messages.types.StepMatchArgumentsList> getStepMatchArguments(PickleStepTestStep pickleStep)
    • createStepMatchArgumentList

      private static io.cucumber.messages.types.StepMatchArgumentsList createStepMatchArgumentList(List<Argument> arguments)
    • emitTestCaseStarted

      private void emitTestCaseStarted(EventBus bus, Instant start, UUID executionId)
    • emitTestCaseFinished

      private void emitTestCaseFinished(EventBus bus, UUID executionId, Instant stop, Result result)