Package org.jbehave.examples.core.service

Examples of org.jbehave.examples.core.service.TradingService


  private String stockExchange;
  private String assetClass;
    private TradeType tradeType;

  public TraderSteps() {
    this(new TradingService());
  }
View Full Code Here


      .useStepMonitor(new SilentStepMonitor());               
  }

    @Override
    public InjectableStepsFactory stepsFactory() {
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new BeforeAfterSteps());
    }
View Full Code Here

public abstract class FailingBeforeAfterCoreStory extends CoreStory {

    @Override
    public InjectableStepsFactory stepsFactory() {
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new AndSteps(), new MetaParametrisationSteps(),
                new CalendarSteps(), new PriorityMatchingSteps(), new PendingSteps(), new SandpitSteps(),
                new SearchSteps(), new BeforeAfterSteps(), new CompositeSteps(), new FailingBeforeAfterSteps());
    }
View Full Code Here

  }

    @Override
    public InjectableStepsFactory stepsFactory() {
      MyContext context = new MyContext();
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new AndSteps(),
                new MetaParametrisationSteps(), new CalendarSteps(), new PriorityMatchingSteps(), new PendingSteps(),
                new SandpitSteps(), new SearchSteps(), new BeforeAfterSteps(), new CompositeSteps(),
                new NamedParametersSteps(), new ExamplesTableParametersSteps(), new TableSteps(), new ContextSteps(context));
    }
View Full Code Here

public class FailingBeforeAfterCoreStories extends CoreStories {

    @Override
    public InjectableStepsFactory stepsFactory() {
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new AndSteps(), new MetaParametrisationSteps(),
                new CalendarSteps(), new PriorityMatchingSteps(), new PendingSteps(), new SandpitSteps(),
                new SearchSteps(), new BeforeAfterSteps(), new CompositeSteps(), new FailingBeforeAfterSteps());
    }
View Full Code Here

    }

    @Override
    public InjectableStepsFactory stepsFactory() {
      MyContext context = new MyContext();
        return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new AndSteps(),
                new MetaParametrisationSteps(), new CalendarSteps(), new PriorityMatchingSteps(), new PendingSteps(),
                new ParametrisedSteps(), new SandpitSteps(), new SearchSteps(), new BeforeAfterSteps(),
                new CompositeSteps(), new CompositeNestedSteps(), new NamedParametersSteps(),
                new ParameterDelimitersSteps(), new ExamplesTableParametersSteps(), new ContextSteps(context));
    }
View Full Code Here

        return new SearchSteps();
    }

    @Bean
    public TraderSteps traderSteps () {
        return new TraderSteps(new TradingService());
    }
View Full Code Here

  public InjectableStepsFactory stepsFactory() {
    final Class<?>[] steps = new Class<?>[] { NeedleTraderSteps.class, BeforeAfterSteps.class, AndSteps.class, CalendarSteps.class, PendingSteps.class,
        PriorityMatchingSteps.class, SandpitSteps.class, SearchSteps.class };

    final Set<InjectionProvider<?>> providers = new HashSet<InjectionProvider<?>>();
    providers.add(InjectionProviders.providerForInstance(new TradingService()));

    return new NeedleStepsFactory(configuration(), providers, steps);
  }
View Full Code Here

public class GivenStoriesFilteredByScenarioId extends CoreStory {

  @Override
  public InjectableStepsFactory stepsFactory() {
    return new InstanceStepsFactory(configuration(), new TraderSteps(
        new TradingService()));
  }
View Full Code Here

  }

  @Override
  public InjectableStepsFactory stepsFactory() {
    return new InstanceStepsFactory(configuration(), new TraderSteps(
        new TradingService()));
  }
View Full Code Here

TOP

Related Classes of org.jbehave.examples.core.service.TradingService

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.