From 133e46f6b4af1db280989df884c28304850e0b1a Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 14 Mar 2017 08:43:58 +0100 Subject: [PATCH] DATACMNS-867 - Test updates after latest rebase. --- .../core/support/DefaultRepositoryInformationUnitTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java index 1989b2a6d..abbdcc7bf 100755 --- a/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java +++ b/src/test/java/org/springframework/data/repository/core/support/DefaultRepositoryInformationUnitTests.java @@ -234,7 +234,7 @@ public class DefaultRepositoryInformationUnitTests { Optional.of(customImplementation.getClass())); Method customBaseRepositoryMethod = GenericsSaveRepository.class.getMethod("save", Object.class); - assertThat(information.isCustomMethod(customBaseRepositoryMethod), is(true)); + assertThat(information.isCustomMethod(customBaseRepositoryMethod)).isTrue(); } @Test // DATACMNS-939 @@ -280,10 +280,10 @@ public class DefaultRepositoryInformationUnitTests { SimpleSaveRepositoryImpl customImplementation = new SimpleSaveRepositoryImpl(); RepositoryMetadata metadata = new DefaultRepositoryMetadata(SimpleSaveRepository.class); RepositoryInformation information = new DefaultRepositoryInformation(metadata, RepositoryFactorySupport.class, - customImplementation.getClass()); + Optional.of(customImplementation.getClass())); Method customBaseRepositoryMethod = SimpleSaveRepository.class.getMethod("save", Object.class); - assertThat(information.isCustomMethod(customBaseRepositoryMethod), is(true)); + assertThat(information.isCustomMethod(customBaseRepositoryMethod)).isTrue(); } private static Method getMethodFrom(Class type, String name) {