@Test public void isUserRole_works() { assertTrue(RoleConstants.isUserRole("ROLE_USER")); assertFalse(RoleConstants.isUserRole("ROLE_SUPERADMIN")); assertFalse(RoleConstants.isUserRole("")); assertFalse(RoleConstants.isUserRole("X")); }
public static final boolean isUserRole(String role) { return ROLE_USER.equals(role); }
RoleConstants { public static final boolean isUserRole(String role) { return ROLE_USER.equals(role); } }
RoleConstants { public static final boolean isUserRole(String role) { return ROLE_USER.equals(role); } private  RoleConstants(); }
RoleConstants { public static final boolean isUserRole(String role) { return ROLE_USER.equals(role); } private  RoleConstants(); static final boolean isSuperAdminRole(String role); static final boolean isUserRole(String role); static final boolean isOwnerRole(String role); }
RoleConstants { public static final boolean isUserRole(String role) { return ROLE_USER.equals(role); } private  RoleConstants(); static final boolean isSuperAdminRole(String role); static final boolean isUserRole(String role); static final boolean isOwnerRole(String role); static final String ROLE_SUPERADMIN; static final String ROLE_USER; static final String ROLE_OWNER; }