Package org.jbehave.core.steps.needle

Examples of org.jbehave.core.steps.needle.ValueGetter


        AnnotatedWithStepsWithDependency.class);
    final List<CandidateSteps> buildCandidateSteps = builderAnnotated
        .buildCandidateSteps();
    assertThatStepsInstancesAre(buildCandidateSteps,
        FooStepsWithDependency.class);
    final ValueGetter getter = ((FooStepsWithDependency) ((Steps) buildCandidateSteps
        .get(0)).instance()).getGetter();
    assertNotNull(getter);
    assertThat((String) getter.getValue(), is(ValueGetter.VALUE));
  }
View Full Code Here


  public boolean verify(InjectionTargetInformation target) {
    return target.getType().isAssignableFrom(ValueGetter.class);
  }

  public ValueGetter getInjectedObject(Class<?> injectionPointType) {
    return new ValueGetter() {

      public Object getValue() {
        return VALUE;
      }
View Full Code Here

TOP

Related Classes of org.jbehave.core.steps.needle.ValueGetter

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.