private static final Float VAL_FLOAT = 4f;
private static final Double VAL_DOUBLE = 5d;
private static final String VAL_STRING = "yam";
public void testInsertNotNull() {
HasNotNullConstraintsJDO pc = createHasConstraintsJDO(VAL_BOOL, VAL_CHAR,
VAL_BYTE, VAL_SHORT, VAL_INT, VAL_LONG,
VAL_FLOAT, VAL_DOUBLE, VAL_STRING);
makePersistentInTxn(pc, TXN_START_END);
beginTxn();
pc = pm.getObjectById(HasNotNullConstraintsJDO.class, pc.getId());
assertEquals(VAL_BOOL, pc.getBool());
assertEquals(VAL_CHAR, pc.getC());
assertEquals(VAL_BYTE, pc.getB());
assertEquals(VAL_SHORT, pc.getS());
assertEquals(VAL_INT, pc.getI());
assertEquals(VAL_LONG, pc.getL());
assertEquals(VAL_FLOAT, pc.getF());
assertEquals(VAL_DOUBLE, pc.getD());
assertEquals(VAL_STRING, pc.getStr());
commitTxn();
}