HHH-5736 Fixed tests

This commit is contained in:
Vyacheslav Dimitrov 2010-12-06 22:50:29 +03:00 committed by Hardy Ferentschik
parent 0c05f66f8d
commit a4fdb870f2
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ public class PredicateTest extends AbstractMetamodelSpecificTest {
orderCriteria.select(orderRoot);
Predicate p1 = builder.equal(orderRoot.get("id"), 1);
Predicate p1 = builder.equal(orderRoot.get("id"), 2);
Predicate p2 = builder.equal(orderRoot.get("id"), 2);
orderCriteria.where( builder.not( builder.or (p1, p2) ) );
em.createQuery( orderCriteria ).getResultList();
@ -122,7 +122,7 @@ public class PredicateTest extends AbstractMetamodelSpecificTest {
orderCriteria.select(orderRoot);
Predicate p1 = builder.equal(orderRoot.get("id"), 1);
Predicate p1 = builder.equal(orderRoot.get("id"), 2);
Predicate p2 = builder.equal(orderRoot.get("id"), 2);
orderCriteria.where( builder.not( builder.and (p1, p2) ) );
em.createQuery( orderCriteria ).getResultList();