예제 #1
0
 @Test
 public void testThatPrintingDoesntThrowExceptions() {
   pm.currentTransaction().commit();
   pm.currentTransaction().begin();
   ZooClassDef def = getDef(TestClass.class);
   QueryParser qp = new QueryParser("(_int > 1 && _int < 52) || _int > 50", def, null, null);
   QueryTreeNode qtn = qp.parseQuery();
   assertNotNull(qtn.print());
 }