Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
1b38d872
Commit
1b38d872
authored
12 years ago
by
gpawel
Browse files
Options
Downloads
Patches
Plain Diff
reverting stupid commit
SVN: 27113
parent
5c1b6965
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/sourceTest/java/ch/systemsx/cisd/common/collection/GroupingDAGTest.java
+6
-4
6 additions, 4 deletions
...a/ch/systemsx/cisd/common/collection/GroupingDAGTest.java
with
6 additions
and
4 deletions
common/sourceTest/java/ch/systemsx/cisd/common/collection/GroupingDAGTest.java
+
6
−
4
View file @
1b38d872
...
...
@@ -29,6 +29,7 @@ import java.util.Map;
import
org.testng.AssertJUnit
;
import
org.testng.annotations.Test
;
import
ch.systemsx.cisd.common.collection.GroupingDAG
;
import
ch.systemsx.cisd.common.exception.UserFailureException
;
/**
...
...
@@ -61,6 +62,7 @@ public class GroupingDAGTest extends AssertJUnit
adjacencyMap
.
put
(
childCode
,
Arrays
.
asList
(
"CHAIN_"
+
(
i
-
1
)));
}
List
<
List
<
String
>>
groups
=
sortTopologically
(
adjacencyMap
);
assertAllEntitiesPresent
(
adjacencyMap
.
keySet
(),
groups
);
...
...
@@ -124,14 +126,14 @@ public class GroupingDAGTest extends AssertJUnit
}
@Test
public
void
testWithParent
O
fParent
()
public
void
testWithParent
o
fParent
()
{
HashMap
<
String
,
Collection
<
String
>>
adjacencyMap
=
new
HashMap
<
String
,
Collection
<
String
>>();
adjacencyMap
.
put
(
"
B
"
,
Arrays
.
asList
(
"A"
));
adjacencyMap
.
put
(
"A"
,
Arrays
.
asList
(
"
P
"
));
adjacencyMap
.
put
(
"
P
"
,
new
ArrayList
<
String
>());
adjacencyMap
.
put
(
"
P
"
,
Arrays
.
asList
(
"A"
));
adjacencyMap
.
put
(
"A"
,
Arrays
.
asList
(
"
B
"
));
adjacencyMap
.
put
(
"
B
"
,
new
ArrayList
<
String
>());
List
<
List
<
String
>>
groups
=
sortTopologically
(
adjacencyMap
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment