From 07a8dd2ca6d491ab3a0d1a920b8e1eaeaffca065 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 15 Jul 2014 11:03:10 +0200 Subject: [PATCH] DATAREST-319 - Adapt to changes in Spring Data Commons. Fixed ReflectionRepositoryInvokerIntegrationTests after some CRUD method detection changes that invalidated the test cases. Related ticket: DATACMNS-539. --- .../invoke/ReflectionRepositoryInvokerIntegrationTests.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/invoke/ReflectionRepositoryInvokerIntegrationTests.java b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/invoke/ReflectionRepositoryInvokerIntegrationTests.java index 5d4e4e1d2..a40de24f3 100644 --- a/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/invoke/ReflectionRepositoryInvokerIntegrationTests.java +++ b/spring-data-rest-core/src/test/java/org/springframework/data/rest/core/invoke/ReflectionRepositoryInvokerIntegrationTests.java @@ -158,7 +158,7 @@ public class ReflectionRepositoryInvokerIntegrationTests extends AbstractIntegra MyRepo repository = mock(MyRepo.class); - MongoRepositoryFactoryBean factory = new MongoRepositoryFactoryBean(); + MongoRepositoryFactoryBean factory = new MongoRepositoryFactoryBean(); factory.setMongoOperations(new MongoTemplate(mock(MongoDbFactory.class))); factory.setRepositoryInterface(MyRepo.class); factory.setLazyInit(true); @@ -177,7 +177,9 @@ public class ReflectionRepositoryInvokerIntegrationTests extends AbstractIntegra } - interface MyRepo extends CustomRepo, CrudRepository {} + interface MyRepo extends CustomRepo, CrudRepository {} + + interface Domain {} interface CustomRepo { void delete(ObjectId id);