27282930313233
@Before public void setUp() { bids = new SimpleOrderList(); asks = new SimpleOrderList(); orderBook = new SimpleOrderBook(bids, asks); }
567891011
import com.mcorrigal.matchingEngine.orderBook.interfaces.OrderBook; public class OrderBookFactory { public static OrderBook newInstance(OrderList bids, OrderList asks) { return new SimpleOrderBook(bids, asks); }