src/main/java/org/apache/sling/launchpad/webapp/integrationtest/AuthenticatedTestUtil.java [143:161]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            if (expectedContentType == null) {
                if (h != null) {
                    fail("Expected null Content-Type, got " + h.getValue());
                }
            } else if (CONTENT_TYPE_DONTCARE.equals(expectedContentType)) {
                // no check
            } else if (h == null) {
                fail("Expected Content-Type that starts with '" + expectedContentType
                        + " but got no Content-Type header at " + url);
            } else {
                assertTrue(
                        "Expected Content-Type that starts with '" + expectedContentType + "' for " + url + ", got '"
                                + h.getValue() + "'",
                        h.getValue().startsWith(expectedContentType));
            }
            return content.toString();

        } finally {
            httpClient.getState().setCredentials(authScope, oldCredentials);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/sling/launchpad/webapp/integrationtest/AuthenticatedTestUtil.java [204:222]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            if (expectedContentType == null) {
                if (h != null) {
                    fail("Expected null Content-Type, got " + h.getValue());
                }
            } else if (CONTENT_TYPE_DONTCARE.equals(expectedContentType)) {
                // no check
            } else if (h == null) {
                fail("Expected Content-Type that starts with '" + expectedContentType
                        + " but got no Content-Type header at " + url);
            } else {
                assertTrue(
                        "Expected Content-Type that starts with '" + expectedContentType + "' for " + url + ", got '"
                                + h.getValue() + "'",
                        h.getValue().startsWith(expectedContentType));
            }
            return content.toString();

        } finally {
            httpClient.getState().setCredentials(authScope, oldCredentials);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



