diff --git a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceSpringDataJpaTests.java b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceTests.java similarity index 97% rename from src/test/java/org/springframework/samples/petclinic/service/ClinicServiceSpringDataJpaTests.java rename to src/test/java/org/springframework/samples/petclinic/service/ClinicServiceTests.java index cc658a146451ead4af71f9945d1272b2f3017771..f436335783620d1532a63823c2c67b787b08d04b 100644 --- a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceSpringDataJpaTests.java +++ b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceTests.java @@ -23,7 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; * TestContext Framework: </p> <ul> <li><strong>Spring IoC container caching</strong> which spares us unnecessary set up * time between test execution.</li> <li><strong>Dependency Injection</strong> of test fixture instances, meaning that * we don't need to perform application context lookups. See the use of {@link Autowired @Autowired} on the <code>{@link - * ClinicServiceSpringDataJpaTests#clinicService clinicService}</code> instance variable, which uses autowiring <em>by + * ClinicServiceTests#clinicService clinicService}</code> instance variable, which uses autowiring <em>by * type</em>. <li><strong>Transaction management</strong>, meaning each test method is executed in its own transaction, * which is automatically rolled back by default. Thus, even if tests insert or otherwise change database state, there * is no need for a teardown or cleanup script. <li> An {@link org.springframework.context.ApplicationContext @@ -38,7 +38,7 @@ import static org.assertj.core.api.Assertions.assertThat; @RunWith(SpringRunner.class) @DataJpaTest(includeFilters = @ComponentScan.Filter(Service.class)) -public class ClinicServiceSpringDataJpaTests { +public class ClinicServiceTests { @Autowired protected ClinicService clinicService; diff --git a/src/main/java/org/springframework/samples/petclinic/util/EntityUtils.java b/src/test/java/org/springframework/samples/petclinic/util/EntityUtils.java similarity index 100% rename from src/main/java/org/springframework/samples/petclinic/util/EntityUtils.java rename to src/test/java/org/springframework/samples/petclinic/util/EntityUtils.java