mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 18:26:16 +01:00
fix unit test for ScmRealm
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
package sonia.scm.security;
|
package sonia.scm.security;
|
||||||
|
|
||||||
//~--- non-JDK imports --------------------------------------------------------
|
//~--- non-JDK imports --------------------------------------------------------
|
||||||
@@ -305,8 +306,12 @@ public class ScmRealmTest
|
|||||||
|
|
||||||
assertNotNull(groups);
|
assertNotNull(groups);
|
||||||
assertFalse(groups.getCollection().isEmpty());
|
assertFalse(groups.getCollection().isEmpty());
|
||||||
assertEquals(4, groups.getCollection().size());
|
assertEquals(5, groups.getCollection().size());
|
||||||
assertThat(groups, containsInAnyOrder("g1", "g2", "g3", "g4"));
|
//J-
|
||||||
|
assertThat(groups,
|
||||||
|
containsInAnyOrder("g1", "g2", "g3", "g4", GroupNames.AUTHENTICATED)
|
||||||
|
);
|
||||||
|
//J+
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user