Commit 23d69f17 authored by Karel Frajtak's avatar Karel Frajtak

Test

parent a3e3b5b3
...@@ -28,4 +28,13 @@ public class OrderTest { ...@@ -28,4 +28,13 @@ public class OrderTest {
order.create(); order.create();
// assert // assert
} }
@Test
public void orderStateIsUnchanged() {
// setup
ShoppingCart cart = new ShoppingCart();
Order order = new Order(cart, 10);
// act
assertEquals(10, order.getState());
}
} }
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