use of org.hisp.dhis.common.QueryOperator.IN in project dhis2-core by dhis2.
the class EventsAnalyticsManagerTest method verifyGetEventsWithMissingValueAndNumericValuesInFilter.
@Test
void verifyGetEventsWithMissingValueAndNumericValuesInFilter() {
String numericValues = String.join(OPTION_SEP, "10", "11", "12");
String expected = "(ax.\"fWIAEtYVEGk\" in (" + String.join(",", numericValues.split(OPTION_SEP)) + ") or ax.\"fWIAEtYVEGk\" is null )";
testIt(IN, numericValues + OPTION_SEP + NV, Collections.singleton((capturedSql) -> assertThat(capturedSql, containsString(expected))));
}
Aggregations