Skip to content
Snippets Groups Projects
Commit 39fbb67b authored by srosse's avatar srosse
Browse files

FXOLAT-207: fix a unit test which is dependent for the order of a returned...

FXOLAT-207: fix a unit test which is dependent for the order of a returned list which is DB specific
parent c30523fc
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,12 @@ public class BusinessGroupManagerImplTest extends OlatTestCase implements Window
if (l.size() == 0) {
one = bgManager.createAndPersistBusinessGroup(BusinessGroup.TYPE_BUDDYGROUP, id1, oneName, oneDesc, null, null, false, false, null);
} else {
one = (BusinessGroup) bgManager.findBusinessGroupsOwnedBy(BusinessGroup.TYPE_BUDDYGROUP, id1, null).get(0);
List<BusinessGroup> groups = bgManager.findBusinessGroupsOwnedBy(BusinessGroup.TYPE_BUDDYGROUP, id1, null);
for(BusinessGroup group:groups) {
if(oneName.equals(group.getName())) {
one = group;
}
}
}
l = bgManager.findBusinessGroupsOwnedBy(BusinessGroup.TYPE_BUDDYGROUP, id2, null);
if (l.size() == 0) {
......
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