@@ -0,0 +1,2099 @@
+package edu.duke.cabig.c3pr.domain;%0A%0Aimport org.hibernate.validator.AssertFalse;%0A%0Aimport edu.duke.cabig.c3pr.AbstractTestCase;%0A%0Apublic class AbstractMutableDeletableDomainObjectTest extends AbstractTestCase%7B%0A%0A%09class TestAbstractMutableDeletableDomainObject extends AbstractMutableDeletableDomainObject%7B%0A%09%09%0A%09%7D%0A%09/*%0A%09 * this method test equals method%0A%09 * this will check equality, id other obj is null%0A%09 */%0A%09public void testEquals()%7B%0A%09%09AbstractMutableDeletableDomainObject  obj1 = new AbstractMutableDeletableDomainObject();%0A%09%09assertFalse(%22objects are not same because comparing with null%22,obj1.equals(null));%0A%09%7D%0A%09%0A%09/*%0A%09 * this method test equals method%0A%09 * this will check equality based on retired indicator.%0A%09 */%0A%09public void testEquals1()%7B%0A%09%09AbstractMutableDeletableDomainObject  obj1 = new AbstractMutableDeletableDomainObject();%0A%09%09AbstractMutableDeletableDomainObject  obj2 = new AbstractMutableDeletableDomainObject();%0A%09%09%0A%09%09obj2.setRetiredIndicatorAsTrue();%0A%09%09assertFalse(%22objects are not same because obj1 has null retired indicator while obj2 has true%22,obj1.equals(obj2));%0A%09%09%0A%09%7D%0A%0A%0A%09/*%0A%09 * this method test equals method%0A%09 * this will check equality based on retired indicator.%0A%09 */%0A%09public void testEquals2()%7B%0A%09%09AbstractMutableDeletableDomainObject  obj1 = new AbstractMutableDeletableDomainObject();%0A%09%09AbstractMutableDeletableDomainObject  obj2 = new AbstractMutableDeletableDomainObject();%0A%09%09obj1.setRetiredIndicatorAsFalse();%0A%09%09obj2.setRetiredIndicatorAsTrue();%0A%09%09assertFalse(%22objects are not same because obj1 has false retired indicator while obj2 has true%22,obj1.equals(obj2));%0A%09%09%0A%09%7D%0A%09%0A%0A%09/*%0A%09 * this method test equals method%0A%09 * this will check equality based on retired indicator.%0A%09 */%0A%09public void testEquals3()%7B%0A%09%09AbstractMutableDeletableDomainObject  obj1 = new AbstractMutableDeletableDomainObject();%0A%09%09AbstractMutableDeletableDomainObject  obj2 = new AbstractMutableDeletableDomainObject();%0A%09%09obj1.setRetiredIndicatorAsTrue();%0A%09%09obj2.setRetiredIndicatorAsTrue();%0A%09%09assertTrue(%22objects are same because retired indictaor is true for both objects%22,obj1.equals(obj2));%0A%09%09%0A%09%7D%0A%0A%0A%0A%7D%0A%0A%0A%0A%0A

test case coverage improvement