}
public void testAutoUpdateDeleteSettings()
{
changeAutoSetting(Project.class, "subProjects", false, false, false, false);
CollectionDescriptor ord = broker.getClassDescriptor(Project.class)
.getCollectionDescriptorByName("subProjects");
assertEquals(CollectionDescriptor.CASCADE_LINK, ord.getCascadingStore());
assertEquals(CollectionDescriptor.CASCADE_NONE, ord.getCascadingDelete());
assertEquals(false, ord.getCascadeStore());
assertEquals(false, ord.getCascadeDelete());
changeAutoSetting(Project.class, "subProjects", false, true, true, false);
ord = broker.getClassDescriptor(Project.class)
.getCollectionDescriptorByName("subProjects");
assertEquals(ObjectReferenceDescriptor.CASCADE_OBJECT, ord.getCascadingStore());
assertEquals(ObjectReferenceDescriptor.CASCADE_OBJECT, ord.getCascadingDelete());
assertEquals(true, ord.getCascadeStore());
assertEquals(true, ord.getCascadeDelete());
}