StepEventBus.exampleStarted
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using net.thucydides.core.steps.StepEventBus.exampleStarted (Showing top 6 results out of 315)

  • Common ways to obtain StepEventBus
private void myMethod () {
StepEventBus s =
  • StepEventBus.getEventBus()
  • StepListener listener;StepEventBus.getEventBus().registerListener(listener)
  • Smart code suggestions by Codota
}
origin: net.thucydides/thucydides-jbehave

private void startExample() {
  Map<String, String> data = exampleData.get(exampleCount - 1);
  StepEventBus.getEventBus().exampleStarted(data);
}
origin: net.serenity-bdd/serenity-jbehave

private void startExample(Map<String, String> data) {
  StepEventBus.getEventBus().exampleStarted(data);
}
origin: net.serenity-bdd/serenity-core

@Override
public void start(Object obj, Method method, Object[] args, MethodProxy proxy) {
  if (ExampleTables.isUsingAnExampleTable() && TestAnnotations.isAnExampleStep(method)) {
    List<String> headers = ExampleTables.getCurrentExampleTable().getHeaders();
    checkColumnCountFor(method, headers, args);
    Map<String, String> row = new HashMap();
    int argumentIndex = 0;
    for(String header : headers) {
      row.put(header, args[argumentIndex++].toString());
    }
    StepEventBus.getEventBus().exampleStarted(row);
  }
}
origin: serenity-bdd/serenity-cucumber

private void startExample(Integer lineNumber) {
  Map<String, String> data = exampleRows().get(lineNumber);
  getStepEventBus(currentFeaturePath()).clearStepFailures();
  getStepEventBus(currentFeaturePath()).exampleStarted(data);
  if (exampleTags().containsKey(lineNumber)) {
    List<Tag> currentExampleTags = exampleTags().get(lineNumber);
    getStepEventBus(currentFeaturePath()).addTagsToCurrentTest(convertCucumberTags(currentExampleTags));
  }
}
origin: net.serenity-bdd/serenity-cucumber

private void startExample(Integer lineNumber) {
  Map<String, String> data = exampleRows().get(lineNumber);
  getStepEventBus(currentFeaturePath()).clearStepFailures();
  getStepEventBus(currentFeaturePath()).exampleStarted(data);
  if (exampleTags().containsKey(lineNumber)) {
    List<Tag> currentExampleTags = exampleTags().get(lineNumber);
    getStepEventBus(currentFeaturePath()).addTagsToCurrentTest(convertCucumberTags(currentExampleTags));
  }
}
origin: net.thucydides/thucydides-junit

@Override
public void testStarted(final Description description) {
  if (testingThisDataSet(description)) {
    super.testStarted(description);
    StepEventBus.getEventBus().useExamplesFrom(dataTableRow());
    //StepEventBus.getEventBus().useExamplesFrom(dataTable());
    if (!ignoredOrPending(description))
      StepEventBus.getEventBus().exampleStarted(parametersTable.row(parameterSetNumber).toStringMap());
  }
}
net.thucydides.core.stepsStepEventBusexampleStarted

Popular methods of StepEventBus

  • getEventBus
    The event bus used to inform listening classes about when tests and test steps start and finish. The
  • stepFailed
  • stepFinished
  • stepIgnored
  • stepPending
  • stepStarted
    Start the execution of a test step.
  • testFinished
  • testStarted
  • assumptionViolated
  • getBaseStepListener
  • testIgnored
  • testPending
    Mark the current test method as pending. The test will stil be executed to record the steps, but any
  • testIgnored,
  • testPending,
  • testSuiteFinished,
  • testSuiteStarted,
  • useExamplesFrom,
  • clearStepFailures,
  • currentTestIsSuspended,
  • clear,
  • exampleFinished

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)