@TestInstance(value=PER_CLASS) public interface LdpRdfTests extends CommonTests
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANNOTATION_RESOURCE |
static java.lang.String |
BASIC_CONTAINER |
static java.lang.String |
SIMPLE_RESOURCE |
| Modifier and Type | Method and Description |
|---|---|
default void |
beforeAllTests()
Initialize the RDF tests.
|
java.lang.String |
getAnnotationLocation()
Get the location of the annotation resource.
|
java.lang.String |
getContainerLocation()
Get the location of the test container.
|
javax.ws.rs.core.EntityTag |
getFirstETag()
Get the first etag.
|
java.lang.String |
getResourceLocation()
Get the location of the test resource.
|
javax.ws.rs.core.EntityTag |
getSecondETag()
Get the second etag.
|
void |
setAnnotationLocation(java.lang.String location)
Set the location of the annotation resource.
|
void |
setContainerLocation(java.lang.String location)
Set the location of the test container.
|
void |
setFirstETag(javax.ws.rs.core.EntityTag etag)
Set the first etag.
|
void |
setResourceLocation(java.lang.String location)
Set the location of the test resource.
|
void |
setSecondETag(javax.ws.rs.core.EntityTag etag)
Set the second etag.
|
java.util.Set<java.lang.String> |
supportedJsonLdProfiles()
Return a set of valid JSON-LD profiles that the server supports.
|
default void |
testGetDefault()
Fetch the default RDF serialization.
|
default void |
testGetJsonLdAnnotationProfile()
Fetch a JSON-LD serialization with a custom profile.
|
default void |
testGetJsonLdCompacted()
Fetch the compacted JSON-LD serialization.
|
default void |
testGetJsonLdDefault()
Fetch the default JSON-LD serialization.
|
default void |
testGetJsonLdExpanded()
Fetch the expanded JSON-LD serialization.
|
default void |
testGetNTriples()
Fetch the N-Triples serialization.
|
default void |
testGetRDF()
Test fetching an RDF resource.
|
default void |
testInvalidRDF()
Test creating resource with syntactically invalid RDF.
|
default void |
testPatchRDF()
Test modifying an RDF document via PATCH.
|
default void |
testPostRDF()
Test POSTing an RDF resource.
|
default void |
testRdfContainment()
Verify that the correct containment triples exist.
|
default void |
testWeirdRDF()
Test creating resource with invalid RDF.
|
getBaseURL, getClient, target, targetstatic final java.lang.String SIMPLE_RESOURCE
static final java.lang.String BASIC_CONTAINER
static final java.lang.String ANNOTATION_RESOURCE
void setResourceLocation(java.lang.String location)
location - the locationjava.lang.String getResourceLocation()
void setAnnotationLocation(java.lang.String location)
location - the locationjava.lang.String getAnnotationLocation()
void setContainerLocation(java.lang.String location)
location - the locationjava.lang.String getContainerLocation()
javax.ws.rs.core.EntityTag getFirstETag()
javax.ws.rs.core.EntityTag getSecondETag()
void setFirstETag(javax.ws.rs.core.EntityTag etag)
etag - the etagvoid setSecondETag(javax.ws.rs.core.EntityTag etag)
etag - the etagjava.util.Set<java.lang.String> supportedJsonLdProfiles()
@BeforeAll @DisplayName(value="Initialize RDF tests") default void beforeAllTests()
@Test @DisplayName(value="Fetch the default RDF serialization") default void testGetDefault()
@Test @DisplayName(value="Fetch the default JSON-LD serialization") default void testGetJsonLdDefault()
@Test @DisplayName(value="Fetch the expanded JSON-LD serialization") default void testGetJsonLdExpanded()
@Test @DisplayName(value="Fetch the compacted JSON-LD serialization") default void testGetJsonLdCompacted()
@Test @DisplayName(value="Fetch the JSON-LD serialization with a custom profile") default void testGetJsonLdAnnotationProfile()
@Test @DisplayName(value="Fetch the N-Triples serialization") default void testGetNTriples()
@Test @DisplayName(value="Test POSTing an RDF resource") default void testPostRDF()
@Test @DisplayName(value="Test fetching an RDF resource") default void testGetRDF()
@Test @DisplayName(value="Test modifying an RDF document via PATCH") default void testPatchRDF()
@Test @DisplayName(value="Verify that the correct containment triples exist") default void testRdfContainment()
@Test @DisplayName(value="Test creating resource with invalid RDF") default void testWeirdRDF()
@Test @DisplayName(value="Test creating resource with syntactically invalid RDF") default void testInvalidRDF()