Polishing.

Original pull request: #618.
See #583.
This commit is contained in:
Mark Paluch
2021-04-28 10:17:37 +02:00
parent 3270594ff5
commit 337efb7ce9

View File

@@ -25,15 +25,14 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.map.repository.config.EnableMapRepositories; import org.springframework.data.map.repository.config.EnableMapRepositories;
/** /**
* Integration tests for {@link PersonRepository}. * Integration tests for {@link PersonRepository}.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Divya Srivastava
*/ */
@SpringBootTest @SpringBootTest
public class PersonRepositoryIntegrationTest { class PersonRepositoryIntegrationTest {
@SpringBootApplication @SpringBootApplication
@EnableMapRepositories @EnableMapRepositories
@@ -42,7 +41,7 @@ public class PersonRepositoryIntegrationTest {
@Autowired PersonRepository repository; @Autowired PersonRepository repository;
@Test @Test
public void storesPerson() { void storesPerson() {
Person person = repository.save(new Person("Dave", "Matthews", 47)); Person person = repository.save(new Person("Dave", "Matthews", 47));
@@ -50,7 +49,7 @@ public class PersonRepositoryIntegrationTest {
} }
@Test @Test
public void findsPersonByAge() { void findsPersonByAge() {
Person dave = repository.save(new Person("Dave", "Matthews", 47)); Person dave = repository.save(new Person("Dave", "Matthews", 47));
Person oliver = repository.save(new Person("Oliver August", "Matthews", 7)); Person oliver = repository.save(new Person("Oliver August", "Matthews", 7));