mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-28 17:19:24 +00:00
update broken test to reflect new reality of business logic of ordinal date comparison
This commit is contained in:
parent
3ec772b527
commit
da7224ff89
@ -3965,9 +3965,9 @@ public class FhirResourceDaoR4SearchNoFtTest extends BaseJpaR4Test {
|
||||
@Test
|
||||
public void testDateSearchParametersShouldBeTimezoneIndependent() {
|
||||
|
||||
createObservationWithEffective("NO1", "2011-01-02T23:00:00-11:30");
|
||||
createObservationWithEffective("NO2", "2011-01-03T00:00:00+01:00");
|
||||
createObservationWithEffective("NO1", "2011-01-03T00:00:00+01:00");
|
||||
|
||||
createObservationWithEffective("YES00", "2011-01-02T23:00:00-11:30");
|
||||
createObservationWithEffective("YES01", "2011-01-02T00:00:00-11:30");
|
||||
createObservationWithEffective("YES02", "2011-01-02T00:00:00-10:00");
|
||||
createObservationWithEffective("YES03", "2011-01-02T00:00:00-09:00");
|
||||
@ -3992,7 +3992,7 @@ public class FhirResourceDaoR4SearchNoFtTest extends BaseJpaR4Test {
|
||||
createObservationWithEffective("YES22", "2011-01-02T00:00:00+10:00");
|
||||
createObservationWithEffective("YES23", "2011-01-02T00:00:00+11:00");
|
||||
|
||||
|
||||
|
||||
SearchParameterMap map = new SearchParameterMap();
|
||||
map.setLoadSynchronous(true);
|
||||
map.add(Observation.SP_DATE, new DateParam("2011-01-02"));
|
||||
@ -4000,6 +4000,7 @@ public class FhirResourceDaoR4SearchNoFtTest extends BaseJpaR4Test {
|
||||
List<String> values = toUnqualifiedVersionlessIdValues(results);
|
||||
Collections.sort(values);
|
||||
assertThat(values.toString(), values, contains(
|
||||
"Observation/YES00",
|
||||
"Observation/YES01",
|
||||
"Observation/YES02",
|
||||
"Observation/YES03",
|
||||
|
Loading…
x
Reference in New Issue
Block a user