Package com.yummynoodlebar.core.repository

Examples of com.yummynoodlebar.core.repository.OrdersMemoryRepository


    return new OrderEventHandler(repo);
  }

  @Bean
  public OrdersRepository createRepo() {
    return new OrdersMemoryRepository(new HashMap<UUID, Order>());
  }
View Full Code Here


  OrdersMemoryRepository uut;

  @Before
  public void setupUnitUnderTest() {
    Map<UUID, Order> emptyOrderList = new HashMap<UUID, Order>();
    uut = new OrdersMemoryRepository(emptyOrderList);
  }
View Full Code Here

  @Test
  public void removeASingleOrder() {

    UUID key = UUID.randomUUID();

    uut = new OrdersMemoryRepository(Collections.singletonMap(key, OrdersFixtures.standardOrder()));

    assertEquals(1, uut.findAll().size());

    uut.delete(key);
View Full Code Here

    return new OrderEventHandler(repo);
  }

  @Bean
  public OrdersRepository createRepo() {
    return new OrdersMemoryRepository(new HashMap<UUID, Order>());
  }
View Full Code Here

TOP

Related Classes of com.yummynoodlebar.core.repository.OrdersMemoryRepository

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.