Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

fix filter for date #122

Merged
merged 1 commit into from
Sep 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import java.lang.reflect.Field;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import static io.tesler.core.controller.param.SearchOperation.CONTAINS_ONE_OF;
Expand Down Expand Up @@ -63,7 +62,7 @@ protected List<ClassifyDataParameter> getProviderParameterValues(Field dtoField,
} else {
setClassifyDateParameterDateValue(dataParameter, filterParam, FieldDTO.isTzAware(dtoField), searchParam, result);
}
result = Collections.singletonList(dataParameter);
result.add(dataParameter);
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void setUp() {
@Test
void searchSpecTest() {
FilterParameters fp = FilterParameters.fromMap(successMap);
Assertions.assertEquals(MetadataUtils.mapSearchParamsToPOJO(TestResponseDto.class, fp, providers).size(), 30);
Assertions.assertEquals(MetadataUtils.mapSearchParamsToPOJO(TestResponseDto.class, fp, providers).size(), 31);
}

@Test
Expand Down