From 621eb18dbd5a8b6551145ef1ec9d043492894fe7 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Tue, 25 Jan 2022 09:17:06 +0100 Subject: [PATCH] Polishing. Indentation in testcases (spaces -> tabs). Additional imports. --- .../data/jpa/repository/UserRepositoryTests.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/UserRepositoryTests.java b/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/UserRepositoryTests.java index a07ea34028..e89a581daf 100644 --- a/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/UserRepositoryTests.java +++ b/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/UserRepositoryTests.java @@ -57,6 +57,8 @@ import org.springframework.dao.InvalidDataAccessApiUsageException; import org.springframework.data.domain.Example; import org.springframework.data.domain.ExampleMatcher; +import org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher; +import org.springframework.data.domain.ExampleMatcher.StringMatcher; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageRequest; @@ -1011,16 +1013,16 @@ void looksUpEntityReferenceUsingGetById() { assertThat(result).isEqualTo(firstUser); } - @Test // GH-2232 - void looksUpEntityReferenceUsingGetReferenceById() { + @Test // GH-2232 + void looksUpEntityReferenceUsingGetReferenceById() { - flushTestUsers(); + flushTestUsers(); - User result = repository.getReferenceById(firstUser.getId()); - assertThat(result).isEqualTo(firstUser); - } + User result = repository.getReferenceById(firstUser.getId()); + assertThat(result).isEqualTo(firstUser); + } - @Test // DATAJPA-415 + @Test // DATAJPA-415 void invokesQueryWithVarargsParametersCorrectly() { flushTestUsers();