@Test @Ignore public void anOrderCanBeShipped() throws Exception { Order order = new Order("x", "y", "z"); assertEquals(false, order.isShipped()); order.ship(); assertEquals("order should be shipped", true, order.isShipped()); }
@Test @Ignore public void shippedOrdersAreNotShown() throws Exception { Order shipped = new Order("X"); Order notShipped = new Order("Y"); orders.addAll(asList(shipped, notShipped)); shipped.ship(); when(request.getMethod()).thenReturn("GET"); when(request.getRequestURI()).thenReturn("/orders"); ordersController.service(); verify(ordersView).show(asList(notShipped)); }