@Test public void testGetRoles() throws Exception { String[] roles = user.getRoles(); assertEquals(roles[0], "test/role1"); }
public String[] getRoles() { return copyArray(_roles); }
User implements Serializable { public String[] getRoles() { return copyArray(_roles); } }
User implements Serializable { public String[] getRoles() { return copyArray(_roles); } User(String name, String[] roles, String token);  User(String name, String[] roles, String token, boolean isWorkFlowAdmin); }
User implements Serializable { public String[] getRoles() { return copyArray(_roles); } User(String name, String[] roles, String token);  User(String name, String[] roles, String token, boolean isWorkFlowAdmin); String getName(); String[] getRoles(); String getToken(); boolean hasRole(String role); boolean isWorkFlowAdmin(); boolean hasOneRoleOf(String[] roles); }
User implements Serializable { public String[] getRoles() { return copyArray(_roles); } User(String name, String[] roles, String token);  User(String name, String[] roles, String token, boolean isWorkFlowAdmin); String getName(); String[] getRoles(); String getToken(); boolean hasRole(String role); boolean isWorkFlowAdmin(); boolean hasOneRoleOf(String[] roles);  }