mirror of https://github.com/apache/openjpa.git
OPENJPA-1265: move test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808401 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f06d862ec6
commit
39da6319dd
|
@ -186,17 +186,6 @@ public class TestEdit extends CriteriaTest {
|
|||
assertFails("Expected to fail without a defined root", c);
|
||||
}
|
||||
|
||||
// public void testDateString() {
|
||||
// String jpql = "select d from Dependent d where d.endDate >= {d '2009-08-25'}";
|
||||
// CriteriaQuery<Dependent> c = cb.createQuery(Dependent.class);
|
||||
// Root<Dependent> d = c.from(Dependent.class);
|
||||
//
|
||||
// c.where(cb.greaterThanOrEqualTo(d.get(Dependent_.endDate), cb.literal("{d '2009-08-25'}").as(Date.class)));
|
||||
//
|
||||
// assertEquivalence(c, jpql);
|
||||
// }
|
||||
|
||||
|
||||
void assertFails(String message, CriteriaQuery<?> c) {
|
||||
try {
|
||||
em.createQuery(c);
|
||||
|
|
Loading…
Reference in New Issue