Commit 16f3840e authored by Matti Henning's avatar Matti Henning
Browse files

#4-Quickfix-Iterable-in-Logic

parent 1af978d8
......@@ -6,7 +6,7 @@ import model.Order;
public interface Logic extends ComponentLifecycle {
public void printOrders(List<Order> orders);
public void printOrders(Iterable<Order> orders);
public void printInventory();
......
......@@ -23,7 +23,7 @@ class LogicImpl implements Logic {
}
@Override
public void printOrders(List<Order> orders) {
public void printOrders(Iterable<Order> orders) {
for( Order order : orders ) {
long id = order.getId();
String name = order.getCustomer().getFirstName();
......
......@@ -56,7 +56,7 @@ class MockDataImpl implements DataAccess {
{ "SKU-443803", 1499 }, //Teekoch
};
priceTable = priceTable_Discount;
priceTable = priceTable_Normal;
Customer cEric = new Customer( "C86516", "Eric Schulz-Mueller", "eric2346@gmail.com" );
Customer cAnne = new Customer( "C64327", "Meyer, Anne", "+4917223524" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment