Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Reformat code.

See #1969
  • Loading branch information
mp911de committed Jan 13, 2025
1 parent f2224a9 commit fe1184a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down Expand Up @@ -404,15 +405,16 @@ void collectionLikeAttributesGetIgnored() {
@Test // GH-1969
void mapAttributesGetIgnored() {

Example<Person> example = Example.of(new Person(null, "Frodo", null, null, null, Map.of("Home", new Address("Bag End"))));
Example<Person> example = Example
.of(new Person(null, "Frodo", null, null, null, Map.of("Home", new Address("Bag End"))));

Query query = exampleMapper.getMappedExample(example);

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

record Person(@Id @Nullable String id, @Nullable String firstname, @Nullable String lastname, @Nullable String secret,
@Nullable List<Possession> possessions,@Nullable Map<String,Address> addresses) {
@Nullable List<Possession> possessions, @Nullable Map<String, Address> addresses) {
}

record Possession(String name) {
Expand Down

0 comments on commit fe1184a

Please sign in to comment.