@Test public void insertOrder_shouldInsertNewOrder() { Order newOrder = createOrderWithAllFields(); newOrder.setOrderId("1"); persistence.insertOrder(newOrder); Order persistedOrder = persistence.read(newOrder.getOrderId()); assertHaveSamePersistentFields(newOrder, persistedOrder, "lineItems"); }
@Override public void insertOrder(@Nonnull final Order order) { create(order); }
OrderBasePersistence extends AbstractBasePersistence<Order, String> implements OrderMapper { @Override public void insertOrder(@Nonnull final Order order) { create(order); } }
OrderBasePersistence extends AbstractBasePersistence<Order, String> implements OrderMapper { @Override public void insertOrder(@Nonnull final Order order) { create(order); }  }
OrderBasePersistence extends AbstractBasePersistence<Order, String> implements OrderMapper { @Override public void insertOrder(@Nonnull final Order order) { create(order); }  @Override List<Order> getOrdersByUsername(@Nonnull final String username); @Override Order getOrder(@Nonnull final String orderId); @Override void insertOrder(@Nonnull final Order order); @Override void insertOrderStatus(@Nonnull final Order order); }
OrderBasePersistence extends AbstractBasePersistence<Order, String> implements OrderMapper { @Override public void insertOrder(@Nonnull final Order order) { create(order); }  @Override List<Order> getOrdersByUsername(@Nonnull final String username); @Override Order getOrder(@Nonnull final String orderId); @Override void insertOrder(@Nonnull final Order order); @Override void insertOrderStatus(@Nonnull final Order order);  }