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

Commit

Permalink
ORBR-1068 - fix filter for date
Browse files Browse the repository at this point in the history
  • Loading branch information
frolov authored and abratashev committed Sep 16, 2020
1 parent ce21c3f commit 10a96e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
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

0 comments on commit 10a96e2

Please sign in to comment.