From 65008f3ce153fad122b3d96a9548dca816feb9f1 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 18 May 2017 15:14:46 +0200 Subject: [PATCH] =?UTF-8?q?DATAREST-1076=20-=20Make=20sure=20tests=20compi?= =?UTF-8?q?le=20on=20JDK=208.=20=C2=AF\=5F(=E3=83=84)=5F/=C2=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/rest/core/RepositoryRestConfigurationUnitTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationUnitTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationUnitTests.java index 945f9cf95..0656c509e 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationUnitTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/RepositoryRestConfigurationUnitTests.java @@ -133,8 +133,8 @@ public class RepositoryRestConfigurationUnitTests { assertThat(corsConfiguration.getMaxAge(), is(1234L)); } - @Test // DATAREST-1076 + @Test(expected = IllegalArgumentException.class) // DATAREST-1076 public void rejectsNullRelProvider() { - assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() -> configuration.setRelProvider(null)); + configuration.setRelProvider(null); } }