context = createDataContext();
}
public void testLong() throws Exception {
LongEntity test = context.newObject(LongEntity.class);
Long i = new Long(Integer.MAX_VALUE + 10l);
test.setLongField(i);
context.commitChanges();
SelectQuery q = new SelectQuery(LongEntity.class);
LongEntity testRead = (LongEntity) context.performQuery(q).get(0);
assertNotNull(testRead.getLongField());
assertEquals(i, testRead.getLongField());
test.setLongField(null);
context.commitChanges();
}