|
@@ -18,6 +18,11 @@ public class AppRoleTests {
|
|
|
assertEquals("ADMIN", admin.getAuthority());
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ @Test
|
|
|
+ public void bitsAreCorrect() throws Exception {
|
|
|
+ // If this fails, someone has modified the Enum and the Datastore is probably corrupt!
|
|
|
+ assertEquals(0, ADMIN.getBit());
|
|
|
+ assertEquals(1, NEW_USER.getBit());
|
|
|
+ assertEquals(2, USER.getBit());
|
|
|
+ }
|
|
|
}
|