From be403a30177476529a8d58d384807c6148e5b6bc Mon Sep 17 00:00:00 2001 From: Mic Date: Tue, 26 Feb 2013 17:20:55 +0800 Subject: [PATCH] migrate all JUnit Integration tests from the repo layer to the service layer (step 1) --- .../AbstractOwnerRepositoryTests.java | 30 ++++++++-------- .../AbstractPetRepositoryTests.java | 34 ++++++++----------- .../AbstractVetRepositoryTests.java | 19 +++++------ .../AbstractVisitRepositoryTests.java | 16 ++++----- 4 files changed, 46 insertions(+), 53 deletions(-) diff --git a/src/test/java/org/springframework/samples/petclinic/repository/AbstractOwnerRepositoryTests.java b/src/test/java/org/springframework/samples/petclinic/repository/AbstractOwnerRepositoryTests.java index e8330dfcb..57a57844f 100644 --- a/src/test/java/org/springframework/samples/petclinic/repository/AbstractOwnerRepositoryTests.java +++ b/src/test/java/org/springframework/samples/petclinic/repository/AbstractOwnerRepositoryTests.java @@ -18,6 +18,7 @@ package org.springframework.samples.petclinic.repository; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.samples.petclinic.model.Owner; +import org.springframework.samples.petclinic.service.ClinicService; import org.springframework.test.context.ContextConfiguration; import org.springframework.transaction.annotation.Transactional; @@ -27,13 +28,13 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; /** - *

Base class for {@link OwnerRepository} integration tests.

Subclasses should specify Spring context + *

Base class for {@link clinicService} integration tests.

Subclasses should specify Spring context * configuration using {@link ContextConfiguration @ContextConfiguration} annotation

- * AbstractOwnerRepositoryTests and its subclasses benefit from the following services provided by the Spring + * AbstractclinicServiceTests and its subclasses benefit from the following services provided by the Spring * TestContext Framework: