/** * Test that memento resources are also LDP resources. */ @Test @DisplayName("Test that memento resources are also LDP resources") default void testMementoLdpResource() { getMementos().forEach((memento, date) -> { try (final Response res = target(memento).request().head()) { assertAll("Check LDP headers", checkMementoLdpHeaders(res, LDP.NonRDFSource)); } }); }
/** * Test that memento resources are also LDP resources. */ @Test @DisplayName("Test that memento resources are also LDP resources") default void testMementoLdpResource() { getMementos().forEach((memento, date) -> { try (final Response res = target(memento).request().head()) { assertAll("Check LDP headers", checkMementoLdpHeaders(res, LDP.NonRDFSource)); } }); }
/** * Test that memento binary descriptions are also LDP resources. */ @Test @DisplayName("Test that memento binary descriptions are also LDP resources") default void testMementoBinaryDescriptionLdpResource() { getMementos().forEach((memento, date) -> { final String description = getDescription(memento); assertNotNull(description, "No describedby Link header!"); try (final Response res = target(description).request().accept("text/turtle").head()) { assertAll("Check LDP headers", checkMementoLdpHeaders(res, LDP.RDFSource)); } }); } }
/** * Test that memento binary descriptions are also LDP resources. */ @Test @DisplayName("Test that memento binary descriptions are also LDP resources") default void testMementoBinaryDescriptionLdpResource() { getMementos().forEach((memento, date) -> { final String description = getDescription(memento); assertNotNull(description, "No describedby Link header!"); try (final Response res = target(description).request().accept("text/turtle").head()) { assertAll("Check LDP headers", checkMementoLdpHeaders(res, LDP.RDFSource)); } }); } }