// Create a array with out null and 0 values Integer[] integers = Op.onArrayFor(1, 2, 3, null, 4, null, 0).removeAllNull().removeAllEqual(0).get(); // Assert for (Integer value : integers) { assertNotNull(value); assertNotSame(0, value); }
Link:
// Create a array with out null and 0 values Integer[] integers = Op.onArrayFor(1, 2, 3, null, 4, null, 0).removeAllNull().removeAllEqual(0).get(); // Assert for (Integer value : integers) { assertNotNull(value); assertNotSame(0, value); }
@Test public void testPurchase() { Seller sellerOne = kasse.getSeller(100); Seller sellerTwo = kasse.getSeller(101); Position hose = new Position(); hose.setDescription("Hose"); hose.setPrice(2150); hose.setSeller(sellerOne); Position kleid = new Position(); kleid.setDescription("Kleid"); kleid.setPrice(2150); kleid.setSeller(sellerTwo); Sale sale = new Sale(); sale.addPosition(hose); sale.addPosition(kleid); kasse.purchase(sale);
}