Removed findCarsByModel testCase

This commit is contained in:
Giuseppe Bueti 2016-03-06 22:04:43 +01:00
parent d65049e9da
commit c2e5548881
1 changed files with 0 additions and 7 deletions

View File

@ -46,13 +46,6 @@ public class StoredProcedureTest {
storedProcedure.getResultList().forEach(c -> Assert.assertEquals(new Integer(2015), ((Car) c).getYear()));
}
@Test
public void findCarsByModel() {
final StoredProcedureQuery findByModelProcedure = entityManager.createNamedStoredProcedureQuery("findByModelProcedure");
StoredProcedureQuery storedProcedure = findByModelProcedure.setParameter("p_model", "Camaro");
storedProcedure.getResultList().forEach(c -> Assert.assertEquals("Camaro", ((Car) c).getModel()));
}
@Test
public void findCarsByYearNoNamedStored() {
StoredProcedureQuery findByYearProcedure = entityManager.createStoredProcedureQuery("FIND_CAR_BY_YEAR", Car.class).registerStoredProcedureParameter("data", Void.class, ParameterMode.REF_CURSOR)