From fe1184aab9f71bbe0c96a229c2bdf847f24374bc Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 13 Jan 2025 12:09:26 +0100 Subject: [PATCH] Polishing. Reformat code. See #1969 --- .../repository/query/RelationalExampleMapperTests.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spring-data-relational/src/test/java/org/springframework/data/relational/repository/query/RelationalExampleMapperTests.java b/spring-data-relational/src/test/java/org/springframework/data/relational/repository/query/RelationalExampleMapperTests.java index 963951c119..a29ef24845 100644 --- a/spring-data-relational/src/test/java/org/springframework/data/relational/repository/query/RelationalExampleMapperTests.java +++ b/spring-data-relational/src/test/java/org/springframework/data/relational/repository/query/RelationalExampleMapperTests.java @@ -38,13 +38,14 @@ * Verify that the {@link RelationalExampleMapper} properly turns {@link Example}s into {@link Query}'s. * * @author Greg Turnquist + * @author Jens Schauder */ -public class RelationalExampleMapperTests { +class RelationalExampleMapperTests { RelationalExampleMapper exampleMapper; @BeforeEach - public void before() { + void before() { exampleMapper = new RelationalExampleMapper(new RelationalMappingContext()); } @@ -404,7 +405,8 @@ void collectionLikeAttributesGetIgnored() { @Test // GH-1969 void mapAttributesGetIgnored() { - Example example = Example.of(new Person(null, "Frodo", null, null, null, Map.of("Home", new Address("Bag End")))); + Example example = Example + .of(new Person(null, "Frodo", null, null, null, Map.of("Home", new Address("Bag End")))); Query query = exampleMapper.getMappedExample(example); @@ -412,7 +414,7 @@ void mapAttributesGetIgnored() { } record Person(@Id @Nullable String id, @Nullable String firstname, @Nullable String lastname, @Nullable String secret, - @Nullable List possessions,@Nullable Map addresses) { + @Nullable List possessions, @Nullable Map addresses) { } record Possession(String name) {