Skip to content

Commit

Permalink
feat: formatting [DHIS2-13779]
Browse files Browse the repository at this point in the history
  • Loading branch information
gnespolino committed Nov 8, 2023
1 parent 7556f6f commit 574461f
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
class DimensionFiltersTest {

/**
* A map of all the fields in {@link DimensionResponse} and a function that creates a {@link DimensionResponse}
* with that field set to the given value.
* A map of all the fields in {@link DimensionResponse} and a function that creates a {@link
* DimensionResponse} with that field set to the given value.
*/
private static final Map<String, Function<String, DimensionResponse>> BUILDER_MAP =
Map.of(
Expand All @@ -66,9 +66,10 @@ class DimensionFiltersTest {
public static final String STRING_TO_TEST_FILTER_ON = "TeSt";

/**
* A map of all the operators and the expected result of applying them to the {@link DimensionResponse} created
* by the corresponding {@link Function} in {@link #BUILDER_MAP} with the given {@link #STRING_TO_TEST_FILTER_ON}.
* The left value is the value to test for positive assertion, the right value is the value to test for negative.
* A map of all the operators and the expected result of applying them to the {@link
* DimensionResponse} created by the corresponding {@link Function} in {@link #BUILDER_MAP} with
* the given {@link #STRING_TO_TEST_FILTER_ON}. The left value is the value to test for positive
* assertion, the right value is the value to test for negative.
*/
private static final Map<String, Pair<String, String>> OPERATORS =
Stream.concat(
Expand All @@ -92,7 +93,6 @@ class DimensionFiltersTest {
.stream())
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));


@Test
void testDimensionFilterConstructor() {

Expand Down Expand Up @@ -140,8 +140,8 @@ void testOperators() {
@Test
void testFieldsAndOperators() {

BUILDER_MAP.forEach((s, builder) -> assertAllOpsOnField(s, builder.apply(
STRING_TO_TEST_FILTER_ON)));
BUILDER_MAP.forEach(
(s, builder) -> assertAllOpsOnField(s, builder.apply(STRING_TO_TEST_FILTER_ON)));
}

private void assertAllOpsOnField(String fieldName, DimensionResponse response) {
Expand Down

0 comments on commit 574461f

Please sign in to comment.