From aa8e5a123fedbc09eaef221ca4966b3f8dad52f4 Mon Sep 17 00:00:00 2001 From: Jon Brisbin Date: Mon, 30 Jul 2012 14:28:54 -0500 Subject: [PATCH] Trying to fix build failures due to strange transaction issues not experienced in local builds. --- .../data/rest/webmvc/spec/TopLevelEntitySpec.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/TopLevelEntitySpec.groovy b/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/TopLevelEntitySpec.groovy index 1f181f898..4f7353490 100644 --- a/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/TopLevelEntitySpec.groovy +++ b/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/TopLevelEntitySpec.groovy @@ -2,12 +2,14 @@ package org.springframework.data.rest.webmvc.spec import org.springframework.data.rest.test.webmvc.Person import org.springframework.http.HttpStatus +import org.springframework.transaction.annotation.Transactional /** * @author Jon Brisbin */ class TopLevelEntitySpec extends BaseSpec { + @Transactional def "saves top-level entity"() { given: @@ -22,6 +24,7 @@ class TopLevelEntitySpec extends BaseSpec { } + @Transactional def "retrieves top-level entity"() { given: @@ -36,6 +39,7 @@ class TopLevelEntitySpec extends BaseSpec { } + @Transactional def "updates top-level entity"() { given: @@ -66,6 +70,7 @@ class TopLevelEntitySpec extends BaseSpec { } + @Transactional def "won't delete entities whose delete methods are not exported"() { given: