291292293294295296297298
fail(); } } public void testGetByKeyUUID() { PersonUUID curie = getByKeyPersonUUID(UUID_CURIE.id); assertEquals(UUID_CURIE, curie); }
186187188189190191192193194
assertEquals(l.get(0).id, people.get(2).id); } public void testFilterOperatorEqualString() { PersonUUID person = pm.createQuery(PersonUUID.class).filter("firstName", "Albert").get(); assertNotNull(person); assertEquals(UUID_EINSTEIN, person); }
192193194195196197198199200
assertNotNull(person); assertEquals(UUID_EINSTEIN, person); } public void testFilterOperatorEqualInt() { PersonUUID person = pm.createQuery(PersonUUID.class).filter("n", 3).get(); assertNotNull(person); assertEquals(UUID_EINSTEIN, person); }
130131132133134135136137138139
Query<PersonStringID> query = pm.createQuery(PersonStringID.class); return query.order(desc ? "-"+order : order); } protected PersonUUID getPersonUUID(String id) { PersonUUID p = new PersonUUID(); p.id = id; pm.get(p); return p; }