@Test public void getOrder_shouldFindExistingOrder() { Order existingOrder = createOrderWithAllFields(); existingOrder.setIntOrderId(1); persistence.create(existingOrder); Order order = persistence.getOrder(existingOrder.getOrderId()); assertHaveSamePersistentFields(existingOrder, order, "lineItems"); }
@Override public Order getOrder(@Nonnull final String orderId) { return read(orderId); }
OrderBasePersistence extends AbstractBasePersistence<Order, String> implements OrderMapper { @Override public Order getOrder(@Nonnull final String orderId) { return read(orderId); } }
OrderBasePersistence extends AbstractBasePersistence<Order, String> implements OrderMapper { @Override public Order getOrder(@Nonnull final String orderId) { return read(orderId); }  }
OrderBasePersistence extends AbstractBasePersistence<Order, String> implements OrderMapper { @Override public Order getOrder(@Nonnull final String orderId) { return read(orderId); }  @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 Order getOrder(@Nonnull final String orderId) { return read(orderId); }  @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);  }