public void addTests() { super.addTests(); PopulationManager manager = PopulationManager.getDefaultManager(); Employee employee = (Employee) manager.getObject(Employee.class, "0001"); Hashtable configurationHashtable = new Hashtable(); configurationHashtable.put( Employee.class, new Integer(ClassDescriptor.INVALIDATE_CHANGED_OBJECTS)); ConfigurableUpdateChangeObjectTest test = new ConfigurableUpdateChangeObjectTest(employee, configurationHashtable); test.setName("Update Change Employee - Invalidate Employee"); test.setDescription("Test the invalidation setting on cache synchronization for Employee"); addTest(test); configurationHashtable = new Hashtable(); configurationHashtable.put( PhoneNumber.class, new Integer(ClassDescriptor.INVALIDATE_CHANGED_OBJECTS)); configurationHashtable.put( Employee.class, new Integer(ClassDescriptor.INVALIDATE_CHANGED_OBJECTS)); test = new ConfigurableUpdateChangeObjectTest(employee, configurationHashtable); test.setName("Update Change Employee - Invalidate Employee, Phone Number"); test.setDescription("Test the invalidation setting on cache synchronization for Phone Number"); addTest(test); addTest(new SendNewObjectCacheSyncTest(true)); addTest(new SendNewObjectCacheSyncTest(false)); addTest(new RelatedNewObjectCacheSyncTest()); addTest(new MultipleCacheSyncTypeTest()); addTest(new RelatedNewObjectNotSentTest()); addTest(new DeleteObjectNotSentTest()); addTest(new ChangeObjectNotSentTest()); // Add the 2 tests below to verify bug 4194320 // addTest(new InvalidCacheSyncTypeTest(-1)); // addTest(new InvalidCacheSyncTypeTest(5)); addTest(new IsolatedObjectNotSentTest()); configurationHashtable = new Hashtable(); configurationHashtable.put( IsolatedEmployee.class, new Integer(ClassDescriptor.SEND_OBJECT_CHANGES)); IsolatedObjectNotSentTest atest = new IsolatedObjectNotSentTest(configurationHashtable); atest.setName("IsolatedObjectNotSentTest - SEND_OBJECT_CHANGES"); addTest(atest); configurationHashtable = new Hashtable(); configurationHashtable.put( IsolatedEmployee.class, new Integer(ClassDescriptor.INVALIDATE_CHANGED_OBJECTS)); atest = new IsolatedObjectNotSentTest(configurationHashtable); atest.setName("IsolatedObjectNotSentTest - INVALIDATE_CHANGED_OBJECTS"); addTest(atest); configurationHashtable = new Hashtable(); configurationHashtable.put( IsolatedEmployee.class, new Integer(ClassDescriptor.SEND_NEW_OBJECTS_WITH_CHANGES)); atest = new IsolatedObjectNotSentTest(configurationHashtable); atest.setName("IsolatedObjectNotSentTest - SEND_NEW_OBJECTS_WITH_CHANGES"); addTest(atest); configurationHashtable = new Hashtable(); configurationHashtable.put( IsolatedEmployee.class, new Integer(ClassDescriptor.DO_NOT_SEND_CHANGES)); atest = new IsolatedObjectNotSentTest(configurationHashtable); atest.setName("IsolatedObjectNotSentTest - DO_NOT_SEND_CHANGES"); addTest(atest); addTest(new InvalidateObjectWithMissingReferenceTest()); addTest(new UpdateObjectInvalidationTest()); addTest(new NativeUpdateObjectInvalidationTest()); addTest(new NewObjectWithOptimisticLockingTest()); addTest(new OrderedListNewObjectTest()); }