use of eu.ggnet.dwoss.redtape.ee.entity.SalesProduct in project dwoss by gg-net.
the class SalesProductOperationIT method testGetSalesProducts.
/**
* Test of getSalesProducts method, of class SalesProductOperation.
*/
@Test
public void testGetSalesProducts() {
SalesProduct product1 = new SalesProduct("Part1", "Name1", 1D, 1, "Descritpt1");
SalesProduct product2 = new SalesProduct("Part2", "Name2", 2D, 2, "Descritpt1");
SalesProduct product3 = new SalesProduct("Part3", "Name3", 3D, 3, "Descritpt1");
SalesProduct product4 = new SalesProduct("Part4", "Name4", 4D, 4, "Descritpt1");
redTapeAgent.persist(product1);
redTapeAgent.persist(product2);
redTapeAgent.persist(product3);
redTapeAgent.persist(product4);
assertTrue(redTapeAgent.findAll(SalesProduct.class).size() == 4);
}
Aggregations