From f3dde0c144bd5a439c6d00cb12f9b0de97bcc058 Mon Sep 17 00:00:00 2001 From: Jon Brisbin Date: Mon, 6 Aug 2012 14:40:32 -0500 Subject: [PATCH] Fixed failing test due to changing the key name in the root-level object, removed the serialVersionUID compile flag. --- build.gradle | 2 +- .../springframework/data/rest/webmvc/spec/DiscoverySpec.groovy | 2 +- .../data/rest/webmvc/spec/QueryMethodsSpec.groovy | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 325c55941..fe292cdb6 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ configure(subprojects) { subproject -> compile.extendsFrom providedCompile } - [compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:serial", "-Xlint:unchecked"] + [compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:unchecked"] project.sourceCompatibility = 1.6 project.targetCompatibility = 1.6 diff --git a/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/DiscoverySpec.groovy b/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/DiscoverySpec.groovy index 3bf1a6821..6e19626a1 100644 --- a/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/DiscoverySpec.groovy +++ b/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/DiscoverySpec.groovy @@ -42,7 +42,7 @@ class DiscoverySpec extends BaseSpec { then: response.statusCode == HttpStatus.OK - body.resources.size() == 10 + body.content.size() == 10 body.page.total == 2 body.page.current == 1 diff --git a/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/QueryMethodsSpec.groovy b/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/QueryMethodsSpec.groovy index 9f20c0987..d299625b4 100644 --- a/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/QueryMethodsSpec.groovy +++ b/spring-data-rest-webmvc/src/test/groovy/org/springframework/data/rest/webmvc/spec/QueryMethodsSpec.groovy @@ -47,7 +47,7 @@ class QueryMethodsSpec extends BaseSpec { then: response.statusCode == HttpStatus.OK - body.resources.size() == 1 + body.content.size() == 1 }