explicit check for collection remove of managed collections

This commit is contained in:
Michael Hunger
2012-07-27 14:01:32 +02:00
parent 62f0e980ff
commit 0b8de1bc4b

View File

@@ -33,9 +33,7 @@ import java.util.Date;
import static java.util.Arrays.asList;
import static java.util.Collections.singleton;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.*;
import static org.neo4j.helpers.collection.IteratorUtil.first;
/**
@@ -265,7 +263,7 @@ public class Neo4jEntityConverterTest extends Neo4jPersistentTestBase {
group.setPersons(set(storeInGraph(emil), storeInGraph(michael), storeInGraph(andres)));
storeInGraph(group);
group.getPersons().remove(emil);
assertTrue(group.getPersons().remove(emil));
storeInGraph(group);
assertEquals(set(andresNode(), michaelNode()), set(groupMemberNodes()));