Fixed failing test case.
Include dependency to Person repository to make sure instance creation is triggered.
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
*/
|
||||
package org.springframework.data.mongodb.repository;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -47,6 +47,9 @@ public class RepositoryIndexCreationIntegrationTests {
|
||||
@Autowired
|
||||
MongoOperations operations;
|
||||
|
||||
@Autowired
|
||||
PersonRepository repository;
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
operations.execute(Person.class, new CollectionCallback<Void>() {
|
||||
|
||||
Reference in New Issue
Block a user