Browse Source

DATAMONGO-537 - Work around compiler issues with generics.

1.0.x
Oliver Gierke 13 years ago
parent
commit
1d9ee9a28f
  1. 7
      spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/RepositoryIndexCreationIntegrationTests.java

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

@ -21,6 +21,7 @@ import static org.junit.Assert.*; @@ -21,6 +21,7 @@ import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import org.hamcrest.Matcher;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
@ -76,8 +77,12 @@ public class RepositoryIndexCreationIntegrationTests { @@ -76,8 +77,12 @@ public class RepositoryIndexCreationIntegrationTests {
assertThat(indexInfo.isEmpty(), is(false));
assertThat(indexInfo.size(), is(greaterThan(2)));
assertThat(getIndexNamesFrom(indexInfo), hasItems(startsWith("findByLastname"), startsWith("findByFirstname")));
Matcher<String> lastnameIndex = startsWith("findByLastname");
Matcher<String> firstnameIndex = startsWith("findByFirstname");
Matcher<Iterable<String>> hasItems = hasItems(lastnameIndex, firstnameIndex);
assertThat(getIndexNamesFrom(indexInfo), hasItems);
return null;
}
});

Loading…
Cancel
Save