assertEquals(VAL_DOUBLE, obj.getD());
assertEquals(VAL_STRING, obj.getStr());
}
public void testUpdateNull() {
HasNotNullConstraintsJPA obj = create();
doUpdate(obj.getId(), new Update() {
public void update(HasNotNullConstraintsJPA obj) {
obj.setBool(null);
}
});
doUpdate(obj.getId(), new Update() {
public void update(HasNotNullConstraintsJPA obj) {
obj.setC(null);
}
});
doUpdate(obj.getId(), new Update() {
public void update(HasNotNullConstraintsJPA obj) {
obj.setB(null);
}
});
doUpdate(obj.getId(), new Update() {
public void update(HasNotNullConstraintsJPA obj) {
obj.setS(null);
}
});
doUpdate(obj.getId(), new Update() {
public void update(HasNotNullConstraintsJPA obj) {
obj.setI(null);
}
});
doUpdate(obj.getId(), new Update() {
public void update(HasNotNullConstraintsJPA obj) {
obj.setL(null);
}
});
doUpdate(obj.getId(), new Update() {
public void update(HasNotNullConstraintsJPA obj) {
obj.setF(null);
}
});
doUpdate(obj.getId(), new Update() {
public void update(HasNotNullConstraintsJPA obj) {
obj.setStr(null);
}
});
}