From e0b3d84362f22c6ccb0db9f49ef35e9840655679 Mon Sep 17 00:00:00 2001 From: Jon Brisbin Date: Wed, 23 May 2012 10:32:37 -0500 Subject: [PATCH] Forgot to add the new Entity to the JPA configuration for fix for #14. --- .../data/rest/webmvc/spec/RepositoryRestControllerSpec.groovy | 2 +- .../src/test/resources/META-INF/persistence.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/RepositoryRestControllerSpec.groovy b/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/RepositoryRestControllerSpec.groovy index f91cdd9cf..275534c8e 100644 --- a/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/RepositoryRestControllerSpec.groovy +++ b/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/RepositoryRestControllerSpec.groovy @@ -86,7 +86,7 @@ class RepositoryRestControllerSpec extends Specification { then: mv.model.status == HttpStatus.OK - reposLinks?.size() == 3 + reposLinks?.size() == 4 when: "adding an entity" model.clear() diff --git a/spring-data-rest-webmvc/src/test/resources/META-INF/persistence.xml b/spring-data-rest-webmvc/src/test/resources/META-INF/persistence.xml index 87f693d94..57a41a4cf 100644 --- a/spring-data-rest-webmvc/src/test/resources/META-INF/persistence.xml +++ b/spring-data-rest-webmvc/src/test/resources/META-INF/persistence.xml @@ -1,6 +1,7 @@ + org.springframework.data.rest.test.webmvc.Family org.springframework.data.rest.test.webmvc.Person org.springframework.data.rest.test.webmvc.Profile org.springframework.data.rest.test.webmvc.Address