mirror of https://github.com/jacekkow/keycloak-protocol-cas

Mateusz Małek
2022-11-07 281a7ed1c82d92bbf09c18ca1bbdff19d1bc0e05
src/test/java/org/keycloak/protocol/cas/ContentTypeHelperTest.java
@@ -29,6 +29,7 @@
        assertEquals(MediaType.APPLICATION_XML_TYPE, get("http://example.com/?format=xml", MediaType.APPLICATION_JSON).selectResponseType());
        assertEquals(MediaType.APPLICATION_XML_TYPE, get("http://example.com/", MediaType.TEXT_PLAIN).selectResponseType());
        assertEquals(MediaType.APPLICATION_XML_TYPE, get("http://example.com/", "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2").selectResponseType());
    }
    private ContentTypeHelper get(String uri, String acceptHeader) throws Exception {