Introduced writeSimpleInternal(…) method that automatically stores the name of an enum instead of the enum itself. Changed quite a few places to rather use MongoPersistentProperty.getKey() over getName().
@ -31,8 +32,10 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@@ -31,8 +32,10 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@Autowired
protectedPersonRepositoryrepository;
Persondave,carter,boyd,stefan,leroi;
Persondave,carter,boyd,stefan,leroi,alicia;
QPersonperson;
List<Person>all;
@Before
publicvoidsetUp(){
@ -44,10 +47,12 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@@ -44,10 +47,12 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@ -59,8 +64,8 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@@ -59,8 +64,8 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@ -70,7 +75,7 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@@ -70,7 +75,7 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
List<Person>result=repository.findAll();
assertThat(result.size(),is(4));
assertThat(result.size(),is(all.size()-1));
assertThat(result,not(hasItem(dave)));
}
@ -81,7 +86,7 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@@ -81,7 +86,7 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
List<Person>result=repository.findAll();
assertThat(result.size(),is(4));
assertThat(result.size(),is(all.size()-1));
assertThat(result,not(hasItem(dave)));
}
@ -116,7 +121,8 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@@ -116,7 +121,8 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@ -237,4 +243,15 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@@ -237,4 +243,15 @@ public abstract class AbstractPersonRepositoryIntegrationTests {