Package org.jbehave.core.parsers

Examples of org.jbehave.core.parsers.RegexStepMatcher


  private void assertThatParametrisedStepHasMarkedParsedParametersValues(String firstParameterValue,
      String secondParameterValue) throws IntrospectionException {
    // Given
        SomeSteps stepsInstance = new SomeSteps();
        StepMatcher stepMatcher = new RegexStepMatcher(StepType.WHEN, "I use parameters $theme and $variant", Pattern.compile("When I use parameters (.*) and (.*)"), new String[]{"theme", "variant"});
        StepCreator stepCreator = stepCreatorUsing(stepsInstance, stepMatcher, new ParameterControls());
        Map<String, String> parameters = new HashMap<String, String>();
       
        // When
        StepResult stepResult = stepCreator.createParametrisedStep(SomeSteps.methodFor("aMethodWithANamedParameter"),
View Full Code Here

TOP

Related Classes of org.jbehave.core.parsers.RegexStepMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.