diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/RootResourceInformationUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/RootResourceInformationUnitTests.java index 0e4c0503f..d0c19589d 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/RootResourceInformationUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/RootResourceInformationUnitTests.java @@ -49,7 +49,6 @@ public class RootResourceInformationUnitTests { @Before public void setUp() { - when(metadata.isExported()).thenReturn(true); this.invoker = mock(RepositoryInvoker.class, new DefaultBooleanToTrue()); this.information = new RootResourceInformation(metadata, entity, invoker); } diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/UriStringDeserializerUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/UriStringDeserializerUnitTests.java index f3e278f31..aa6bccdf4 100755 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/UriStringDeserializerUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/UriStringDeserializerUnitTests.java @@ -99,7 +99,6 @@ public class UriStringDeserializerUnitTests { when(property.getActualType()).thenReturn((Class) Object.class); when(parser.getValueAsString()).thenReturn(source); - when(parser.getText()).thenReturn(source); return deserializer.deserialize(parser, context); }