Package com.mcorrigal.matchingEngine.given

Examples of com.mcorrigal.matchingEngine.given.Environment


 
  private Environment environment;
 
  @Given("^a matching engine with an empty order book$")
  public void anEmptyOrderBook() {
    environment = new Environment();
  }
View Full Code Here


    environment = new Environment();
  }

  @Given("^a matching engine with the following order book:$")
  public void aLoadedOrderBook(List<SpecifiedOrderBookLevel> orderBookLevels) throws Throwable {
    environment = new Environment();
   
    for (SpecifiedOrderBookLevel bookLevel : orderBookLevels) {
      BuyOrder buyOrder = bookLevel.getBidSideAsShortHandDescription().manufactureNewOrder();
      SellOrder sellOrder = bookLevel.getAskSideAsShortHandDescription().manufactureNewOrder();
      if (buyOrder != null) sendOrder(buyOrder);
View Full Code Here

TOP

Related Classes of com.mcorrigal.matchingEngine.given.Environment

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.