+
+ @Test
+ public void testAppRoleLevelFromString() {
+ Assert.assertTrue(AppRoleLevel.fromString("App-Admin") == AppRoleLevel.APPADMIN);
+ Assert.assertTrue(AppRoleLevel.fromString("App-User") == AppRoleLevel.APPUSER);
+ Assert.assertTrue(AppRoleLevel.fromString("App-Operator") == AppRoleLevel.APPOPERATOR);
+ Assert.assertTrue(AppRoleLevel.fromString(" ") == null);
+ Assert.assertTrue(AppRoleLevel.fromString("") == null);
+ Assert.assertTrue(AppRoleLevel.fromString("App-Admini") == null);
+ }