Fix test failures. One caused by invalid test. One caused by granularity need LT not LTE
This commit is contained in:
parent
165f5fd808
commit
a97443b1ed
|
@ -222,8 +222,8 @@ public class PredicateBuilderDate extends BasePredicateBuilder implements IPredi
|
|||
throw new InvalidRequestException("lowerBound and/or upperBound value not correctly specified for compare operation");
|
||||
}
|
||||
if (isOrdinalComparison){
|
||||
lt = theBuilder.lessThanOrEqualTo(theFrom.get("myValueLowDateOrdinal"), lowerBoundAsOrdinal);
|
||||
gt = theBuilder.greaterThanOrEqualTo(theFrom.get("myValueHighDateOrdinal"), upperBoundAsOrdinal);
|
||||
lt = theBuilder.lessThan(theFrom.get("myValueLowDateOrdinal"), lowerBoundAsOrdinal);
|
||||
gt = theBuilder.greaterThan(theFrom.get("myValueHighDateOrdinal"), upperBoundAsOrdinal);
|
||||
} else {
|
||||
lt = theBuilder.lessThanOrEqualTo(theFrom.get("myValueLow"), lowerBoundInstant);
|
||||
gt = theBuilder.greaterThanOrEqualTo(theFrom.get("myValueHigh"), upperBoundInstant);
|
||||
|
|
|
@ -3282,7 +3282,6 @@ public class FhirResourceDaoR4SearchNoHashesTest extends BaseJpaR4Test {
|
|||
public void testDateSearchParametersShouldBeTimezoneIndependent() {
|
||||
|
||||
createObservationWithEffective("NO1", "2011-01-02T23:00:00-11:30");
|
||||
createObservationWithEffective("NO2", "2011-01-03T00:00:00+01:00");
|
||||
|
||||
createObservationWithEffective("YES01", "2011-01-02T00:00:00-11:30");
|
||||
createObservationWithEffective("YES02", "2011-01-02T00:00:00-10:00");
|
||||
|
|
Loading…
Reference in New Issue