Package cucumber.runtime

Examples of cucumber.runtime.StepDefinitionMatch


      countStep();

      Field stepField = ReflectionUtils.findField( StepDefinitionMatch.class, "step" );
      stepField.setAccessible( true );

      StepDefinitionMatch stepDefinitionMatch = (StepDefinitionMatch) match;

      try {
        Step step = (Step) stepField.get( stepDefinitionMatch );

        MDC.put( "prefix", PREFIX_STEP );
View Full Code Here


        scenario.set(null);
    }

    @Before("call(public * cucumber.runtime.StepDefinitionMatch.runStep(..)) && within(cucumber.runtime.Runtime)")
    public void beforeRunningStep(JoinPoint thisJoinPoint) {
        StepDefinitionMatch stepDefinitionMatch = (StepDefinitionMatch) thisJoinPoint.getTarget();
        Step step = (Step) getFieldValueInObject(stepDefinitionMatch, "step");
        setScenarioFromStep(step);
    }
View Full Code Here

        setScenarioFromStep(step);
    }

    @After("call(public * cucumber.runtime.StepDefinitionMatch.runStep(..)) && within(cucumber.runtime.Runtime)")
    public void afterRunningStep(JoinPoint thisJoinPoint) {
        StepDefinitionMatch stepDefinitionMatch = (StepDefinitionMatch) thisJoinPoint.getTarget();
        Step step = (Step) getFieldValueInObject(stepDefinitionMatch, "step");
        steps.remove(step);
    }
View Full Code Here

TOP

Related Classes of cucumber.runtime.StepDefinitionMatch

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.