Search in sources :

Example 11 with SalesProduct

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);
}
Also used : SalesProduct(eu.ggnet.dwoss.redtape.ee.entity.SalesProduct)

Aggregations

SalesProduct (eu.ggnet.dwoss.redtape.ee.entity.SalesProduct)11 SalesProductEao (eu.ggnet.dwoss.redtape.ee.eao.SalesProductEao)2 ProductSpec (eu.ggnet.dwoss.spec.ee.entity.ProductSpec)2 OkCancelDialog (eu.ggnet.dwoss.util.OkCancelDialog)2 HtmlDialog (eu.ggnet.dwoss.util.HtmlDialog)1 ArrayList (java.util.ArrayList)1 NoResultException (javax.persistence.NoResultException)1 Query (javax.persistence.Query)1 Test (org.junit.Test)1