getWindowControl().setInfo("Properties<br />TestTransactionalKey-1=doTestTransactional_1,<br />TestTransactionalKey-2=doTestTransactional_2 created");
}
private void doTestNonTransactionalError() {
PropertyManager pm = PropertyManager.getInstance();
Property p1 = pm.createPropertyInstance(null, null, null, propertyCategory, propertyKey1, null, null, "doTestNonTransactionalError_1", null);
pm.saveProperty(p1);
// name is null => generated DB error => no rollback of p1
Property p2 = pm.createPropertyInstance(null, null, null, propertyCategory, null, null, null, "doTestNonTransactionalError_2", null);
pm.saveProperty(p2);
getWindowControl().setError("Should generate error for rollback!");
Tracing.logError("Should generate error and not reach this code",getClass());
}