@Test public void returnsEmptyRolesSetIfWebXmlNotFound() { ServletContext servletContext = mock(ServletContext.class); WebApplicationDeclaredRoles webApplicationDeclaredRoles = new WebApplicationDeclaredRoles(servletContext); assertTrue("Roles set must be empty", webApplicationDeclaredRoles.getDeclaredRoles().isEmpty()); }
public Set<String> getDeclaredRoles() { return declaredRoles; }
WebApplicationDeclaredRoles { public Set<String> getDeclaredRoles() { return declaredRoles; } }
WebApplicationDeclaredRoles { public Set<String> getDeclaredRoles() { return declaredRoles; } WebApplicationDeclaredRoles(ServletContext servletContext); }
WebApplicationDeclaredRoles { public Set<String> getDeclaredRoles() { return declaredRoles; } WebApplicationDeclaredRoles(ServletContext servletContext); Set<String> getDeclaredRoles(); }
WebApplicationDeclaredRoles { public Set<String> getDeclaredRoles() { return declaredRoles; } WebApplicationDeclaredRoles(ServletContext servletContext); Set<String> getDeclaredRoles();  }