From dd0eb5a55edd2c7c2b751b3f38bf1da64c9b066d Mon Sep 17 00:00:00 2001 From: Mic <misvy@vmware.com> Date: Mon, 4 Mar 2013 12:15:20 +0800 Subject: [PATCH] improved/updated Javadoc in JUnit tests --- .../petclinic/service/AbstractClinicServiceTests.java | 2 +- .../samples/petclinic/service/ClinicServiceJdbcTests.java | 3 ++- .../samples/petclinic/service/ClinicServiceJpaTests.java | 6 ++---- .../petclinic/service/ClinicServiceSpringDataJpaTests.java | 2 ++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/springframework/samples/petclinic/service/AbstractClinicServiceTests.java b/src/test/java/org/springframework/samples/petclinic/service/AbstractClinicServiceTests.java index e0571f7..d0d9e55 100644 --- a/src/test/java/org/springframework/samples/petclinic/service/AbstractClinicServiceTests.java +++ b/src/test/java/org/springframework/samples/petclinic/service/AbstractClinicServiceTests.java @@ -34,7 +34,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; /** - * <p> Base class for {@link clinicService} integration tests. </p> <p> Subclasses should specify Spring context + * <p> Base class for {@link ClinicService} integration tests. </p> <p> Subclasses should specify Spring context * configuration using {@link ContextConfiguration @ContextConfiguration} annotation </p> <p> * AbstractclinicServiceTests and its subclasses benefit from the following services provided by the Spring * TestContext Framework: </p> <ul> <li><strong>Spring IoC container caching</strong> which spares us unnecessary set up diff --git a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceJdbcTests.java b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceJdbcTests.java index 787733c..49e57ea 100644 --- a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceJdbcTests.java +++ b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceJdbcTests.java @@ -21,7 +21,8 @@ import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** - * <p> Integration tests for the {@link JdbcClinicImpl} implementation. </p> <p> </p> + * <p> Integration test using the jdbc profile. + * @see AbstractClinicServiceTests AbstractClinicServiceTests for more details. </p> * * @author Thomas Risberg * @author Michael Isvy diff --git a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceJpaTests.java b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceJpaTests.java index 2a3d544..e024f21 100644 --- a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceJpaTests.java +++ b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceJpaTests.java @@ -7,10 +7,8 @@ import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** - * <p> Provides the following services: <ul> <li>Injects test dependencies, meaning that we don't need to perform - * application context lookups. See the setClinic() method. Injection uses autowiring by type.</li> <li>Executes each - * test method in its own transaction, which is automatically rolled back by default. This means that even if tests - * insert or otherwise change database state, there is no need for a teardown or cleanup script.</li> </ul> <p> </p> + * <p> Integration test using the jpa profile. + * @see AbstractClinicServiceTests AbstractClinicServiceTests for more details. </p> * * @author Rod Johnson * @author Sam Brannen diff --git a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceSpringDataJpaTests.java b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceSpringDataJpaTests.java index b624abc..e01dda5 100644 --- a/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceSpringDataJpaTests.java +++ b/src/test/java/org/springframework/samples/petclinic/service/ClinicServiceSpringDataJpaTests.java @@ -7,6 +7,8 @@ import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** + * <p> Integration test using the 'Spring Data' profile. + * @see AbstractClinicServiceTests AbstractClinicServiceTests for more details. </p> * @author Michael Isvy */ -- GitLab