assertThat(commit.getComment(), is("This is the second comment"));
}
@Test
public void testPrimitivePropertyTypeConversion_shouldConvertAndPersistWithCorrectType() throws Exception {
PrimitivePropertyModelDecorator model = getPrimitivePropertyModelDecorator();
model.setId("ppm/0");
model.setBooleanByGet(true);
model.setBooleanByIs(true);
model.setPrimitiveChar(Character.MAX_VALUE);
model.setPrimitiveDouble(Double.MAX_VALUE);
model.setPrimitiveFloat(Float.MAX_VALUE);
model.setPrimitiveInt(Integer.MAX_VALUE);
model.setPrimitiveLong(Long.MAX_VALUE);
model.setPrimitiveShort(Short.MAX_VALUE);
assertThat(model.isBooleanByIs(), is(true));
assertThat(model.getBooleanByGet(), is(true));
EKBCommit commit = getTestEKBCommit().addInsert(model.getModel());
persist.commit(commit);
// check edb object
EDBObject edbObject = edbService.getObject(getModelOid("ppm/0"));
// check entry types