Skip to content

Commit fe1184a

Browse files
committed
Polishing.
Reformat code. See #1969
1 parent f2224a9 commit fe1184a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spring-data-relational/src/test/java/org/springframework/data/relational/repository/query/RelationalExampleMapperTests.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@
3838
* Verify that the {@link RelationalExampleMapper} properly turns {@link Example}s into {@link Query}'s.
3939
*
4040
* @author Greg Turnquist
41+
* @author Jens Schauder
4142
*/
42-
public class RelationalExampleMapperTests {
43+
class RelationalExampleMapperTests {
4344

4445
RelationalExampleMapper exampleMapper;
4546

4647
@BeforeEach
47-
public void before() {
48+
void before() {
4849
exampleMapper = new RelationalExampleMapper(new RelationalMappingContext());
4950
}
5051

@@ -404,15 +405,16 @@ void collectionLikeAttributesGetIgnored() {
404405
@Test // GH-1969
405406
void mapAttributesGetIgnored() {
406407

407-
Example<Person> example = Example.of(new Person(null, "Frodo", null, null, null, Map.of("Home", new Address("Bag End"))));
408+
Example<Person> example = Example
409+
.of(new Person(null, "Frodo", null, null, null, Map.of("Home", new Address("Bag End"))));
408410

409411
Query query = exampleMapper.getMappedExample(example);
410412

411413
assertThat(query.getCriteria().orElseThrow().toString()).doesNotContainIgnoringCase("address");
412414
}
413415

414416
record Person(@Id @Nullable String id, @Nullable String firstname, @Nullable String lastname, @Nullable String secret,
415-
@Nullable List<Possession> possessions,@Nullable Map<String,Address> addresses) {
417+
@Nullable List<Possession> possessions, @Nullable Map<String, Address> addresses) {
416418
}
417419

418420
record Possession(String name) {

0 commit comments

Comments
 (0)