diff --git a/.gitignore b/.gitignore index 559982f3d86..8cdbd1ff48f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,8 +2,6 @@ target/* .settings/* .classpath .project -.factorypath -.attach_pid* .idea *.iml /target diff --git a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceTests.java b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceTests.java index b5626fae56f..9f12151d993 100644 --- a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceTests.java +++ b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceTests.java @@ -16,14 +16,16 @@ package org.springframework.samples.petclinic.service; +import static org.assertj.core.api.Assertions.assertThat; + import java.time.LocalDate; import java.util.Collection; import org.junit.Test; import org.junit.runner.RunWith; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; +import org.springframework.context.annotation.ComponentScan; import org.springframework.samples.petclinic.owner.Owner; import org.springframework.samples.petclinic.owner.OwnerRepository; import org.springframework.samples.petclinic.owner.Pet; @@ -33,32 +35,22 @@ import org.springframework.samples.petclinic.vet.VetRepository; import org.springframework.samples.petclinic.visit.Visit; import org.springframework.samples.petclinic.visit.VisitRepository; +import org.springframework.stereotype.Service; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; -import static org.assertj.core.api.Assertions.assertThat; - /** * Integration test of the Service and the Repository layer. *
- * ClinicServiceSpringDataJpaTests subclasses benefit from the following services provided - * by the Spring TestContext Framework: - *
- *{@link
- * ClinicServiceTests#clinicService clinicService}
instance variable, which uses
- * autowiring by type.
- * {@link
+ * ClinicServiceTests#clinicService clinicService}
instance variable, which uses autowiring by
+ * type.