SearchStreams { public Order p2_getOrderById(List<Order> orders, long orderId) { return null; }  List<Order> p1_getActiveOrders(Customer customer); Order p2_getOrderById(List<Order> orders, long orderId); boolean p3_hasActiveOrders(Customer customer); boolean p4_canBeReturned(Order order); Order p5_getMaxPriceOrder(Customer customer); List<Order> p6_getLast3Orders(Customer customer);  }
@Test public void p2_getOrderById() { List<Order> orders = Arrays.asList(new Order(1L), new Order(2L), new Order(3L)); assertEquals(1L, (long) service.p2_getOrderById(orders, 1L).getId()); }
@Test @Ignore public void p2_getOrderById_whenIdNotFound() { List<Order> orders = Arrays.asList(new Order(1L)); assertEquals(null, (long) service.p2_getOrderById(orders, 1000L).getId()); }
@Test public void p2_getOrderById() { List<Order> orders = Arrays.asList(new Order(1L), new Order(2L), new Order(3L)); assertEquals(2L, (long) service.p2_getOrderById(orders, 2L).getId()); }
@Test @Ignore public void p2_getOrderById_whenIdNotFound() { List<Order> orders = Arrays.asList(new Order(1L)); assertEquals(null, service.p2_getOrderById(orders, 1000L)); }