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.
This commit is contained in:
Oliver Gierke
2014-07-15 11:03:10 +02:00
parent 3a583ba511
commit 07a8dd2ca6

View File

@@ -158,7 +158,7 @@ public class ReflectionRepositoryInvokerIntegrationTests extends AbstractIntegra
MyRepo repository = mock(MyRepo.class);
MongoRepositoryFactoryBean<MyRepo, Object, ObjectId> factory = new MongoRepositoryFactoryBean<MyRepo, Object, ObjectId>();
MongoRepositoryFactoryBean<MyRepo, Domain, ObjectId> factory = new MongoRepositoryFactoryBean<MyRepo, Domain, ObjectId>();
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<Object, ObjectId> {}
interface MyRepo extends CustomRepo, CrudRepository<Domain, ObjectId> {}
interface Domain {}
interface CustomRepo {
void delete(ObjectId id);