Skip to content
Snippets Groups Projects
Commit 5c1b6965 authored by gpawel's avatar gpawel
Browse files

Breaking the test of Aaron's case

SVN: 27112
parent 919ee89b
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,6 @@ import java.util.Map; ...@@ -29,7 +29,6 @@ import java.util.Map;
import org.testng.AssertJUnit; import org.testng.AssertJUnit;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import ch.systemsx.cisd.common.collection.GroupingDAG;
import ch.systemsx.cisd.common.exception.UserFailureException; import ch.systemsx.cisd.common.exception.UserFailureException;
/** /**
...@@ -62,7 +61,6 @@ public class GroupingDAGTest extends AssertJUnit ...@@ -62,7 +61,6 @@ public class GroupingDAGTest extends AssertJUnit
adjacencyMap.put(childCode, Arrays.asList("CHAIN_" + (i - 1))); adjacencyMap.put(childCode, Arrays.asList("CHAIN_" + (i - 1)));
} }
List<List<String>> groups = sortTopologically(adjacencyMap); List<List<String>> groups = sortTopologically(adjacencyMap);
assertAllEntitiesPresent(adjacencyMap.keySet(), groups); assertAllEntitiesPresent(adjacencyMap.keySet(), groups);
...@@ -126,14 +124,14 @@ public class GroupingDAGTest extends AssertJUnit ...@@ -126,14 +124,14 @@ public class GroupingDAGTest extends AssertJUnit
} }
@Test @Test
public void testWithParentofParent() public void testWithParentOfParent()
{ {
HashMap<String, Collection<String>> adjacencyMap = HashMap<String, Collection<String>> adjacencyMap =
new HashMap<String, Collection<String>>(); new HashMap<String, Collection<String>>();
adjacencyMap.put("P", Arrays.asList("A")); adjacencyMap.put("B", Arrays.asList("A"));
adjacencyMap.put("A", Arrays.asList("B")); adjacencyMap.put("A", Arrays.asList("P"));
adjacencyMap.put("B", new ArrayList<String>()); adjacencyMap.put("P", new ArrayList<String>());
List<List<String>> groups = sortTopologically(adjacencyMap); List<List<String>> groups = sortTopologically(adjacencyMap);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment