Fix tests

This commit is contained in:
James Agnew 2016-07-05 09:57:55 -04:00
parent 344b1256ce
commit 9226e43090
3 changed files with 3282 additions and 3109 deletions

View File

@ -49,7 +49,7 @@ public abstract class PrimitiveType<T> extends Type implements IPrimitiveType<T>
PrimitiveType<?> o = (PrimitiveType<?>) obj;
EqualsBuilder b = new EqualsBuilder();
b.append(getValue(), o.getValue());
b.append(getValueAsString(), o.getValueAsString());
return b.isEquals();
}
@ -65,7 +65,7 @@ public abstract class PrimitiveType<T> extends Type implements IPrimitiveType<T>
PrimitiveType<?> o = (PrimitiveType<?>) obj;
EqualsBuilder b = new EqualsBuilder();
b.append(getValue(), o.getValue());
b.append(getValueAsString(), o.getValueAsString());
return b.isEquals();
}

View File

@ -9,6 +9,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.TimeZone;
import org.hl7.fhir.dstu3.model.Appointment;
import org.hl7.fhir.dstu3.model.Claim;
@ -89,11 +90,16 @@ public class ModelDstu3Test {
}
}
// private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(ModelDstu3Test.class);
/**
* See #325
*/
@Test
public void testEqualsDeep() throws Exception {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
Date date = dateFormat.parse("19920925");
FhirContext context = FhirContext.forDstu3();