Browse Source

Fixed failing test case.

Include dependency to Person repository to make sure instance creation is triggered.
pull/1/head
Oliver Gierke 14 years ago
parent
commit
817e167056
  1. 5
      spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/RepositoryIndexCreationIntegrationTests.java

5
spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/RepositoryIndexCreationIntegrationTests.java

@ -15,8 +15,8 @@ @@ -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 { @@ -47,6 +47,9 @@ public class RepositoryIndexCreationIntegrationTests {
@Autowired
MongoOperations operations;
@Autowired
PersonRepository repository;
@After
public void tearDown() {
operations.execute(Person.class, new CollectionCallback<Void>() {

Loading…
Cancel
Save