diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappedPropertiesUnitTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappedPropertiesUnitTests.java index be4e00a9c..d540c5ce0 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappedPropertiesUnitTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/MappedPropertiesUnitTests.java @@ -72,8 +72,8 @@ public class MappedPropertiesUnitTests { @Test // DATAREST-1006 public void doesNotExposeIgnoredPropertyViaJsonProperty() { - assertThat(properties.hasPersistentPropertyForField("readOnlyProperty")).isFalse(); - assertThat(properties.getPersistentProperty("readOnlyProperty")).isNull(); + assertThat(properties.hasPersistentPropertyForField("readOnlyProperty"), is(false)); + assertThat(properties.getPersistentProperty("readOnlyProperty"), is(nullValue())); } static class Sample {