use of siena.base.test.model.PersonLongAutoID in project siena by mandubian.
the class BaseAsyncTest method testGetLongAutoID.
public void testGetLongAutoID() {
PersonLongAutoID curie = getPersonLongAutoID(LongAutoID_CURIE.id);
assertEquals(LongAutoID_CURIE, curie);
}
use of siena.base.test.model.PersonLongAutoID in project siena by mandubian.
the class BaseAsyncTest method getPersonLongAutoID.
private PersonLongAutoID getPersonLongAutoID(Long id) {
PersonLongAutoID p = new PersonLongAutoID();
p.id = id;
pm.get(p).get();
return p;
}
use of siena.base.test.model.PersonLongAutoID in project siena by mandubian.
the class BaseAsyncTest method testGetByKeyLongAutoID.
public void testGetByKeyLongAutoID() {
PersonLongAutoID curie = pm.getByKey(PersonLongAutoID.class, LongAutoID_CURIE.id).get();
assertEquals(LongAutoID_CURIE, curie);
}
use of siena.base.test.model.PersonLongAutoID in project siena by mandubian.
the class BaseTestNoAutoInc_DEFAULT method testIterFullLongAutoID.
public void testIterFullLongAutoID() {
Iterable<PersonLongAutoID> people = pm.createQuery(PersonLongAutoID.class).order("n").iter();
assertNotNull(people);
PersonLongAutoID[] array = new PersonLongAutoID[] { LongAutoID_TESLA, LongAutoID_CURIE, LongAutoID_EINSTEIN };
int i = 0;
for (PersonLongAutoID person : people) {
assertEquals(array[i], person);
i++;
}
}
use of siena.base.test.model.PersonLongAutoID in project siena by mandubian.
the class BaseTestNoAutoInc_DEFAULT method testIterLimitOffsetLongAutoID.
public void testIterLimitOffsetLongAutoID() {
Iterable<PersonLongAutoID> people = pm.createQuery(PersonLongAutoID.class).order("n").iter(2, 1);
assertNotNull(people);
PersonLongAutoID[] array = new PersonLongAutoID[] { LongAutoID_CURIE, LongAutoID_EINSTEIN };
int i = 0;
for (PersonLongAutoID person : people) {
assertEquals(array[i], person);
i++;
}
}
Aggregations