From d47e87aee0e29f0ef925b47a8eb1a29ccef17a26 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 10 Oct 2017 09:28:08 +0200 Subject: [PATCH] DATAREST-1006 - Polishing. Fixed assertions to use Hamcrest instead of AssertJ. --- .../data/rest/webmvc/json/MappedPropertiesUnitTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {