@TestInstance(value=PER_CLASS) @DisplayName(value="Binary resource tests") public interface LdpBinaryTests extends CommonTests
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASIC_CONTAINER |
static java.lang.String |
CONTENT |
| Modifier and Type | Method and Description |
|---|---|
default void |
beforeAllTests()
Initialize Binary tests.
|
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 |
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.
|
default void |
testBinaryIsInContainer()
Test that the binary appears in the parent container.
|
default void |
testBinaryWantDigestSha()
Test that the SHA digest is generated.
|
default void |
testBinaryWantDigestSha256()
Test that the SHA-256 digest is generated.
|
default void |
testBinaryWantDigestUnknown()
Test that an unknown digest is ignored.
|
default void |
testGetBinary()
Test fetching a binary resource.
|
default void |
testGetBinaryDescription()
Test fetching a binary description.
|
default void |
testPatchBinaryDescription()
Test modifying a binary's description via PATCH.
|
default void |
testPostBinary()
Test creating a new binary via POST.
|
default void |
testPostBinaryWithDigest()
Test creating a new binary via POST with a digest header.
|
getBaseURL, getClient, target, targetstatic final java.lang.String CONTENT
static final java.lang.String BASIC_CONTAINER
void setResourceLocation(java.lang.String location)
location - the locationjava.lang.String getResourceLocation()
void setContainerLocation(java.lang.String location)
location - the locationjava.lang.String getContainerLocation()
javax.ws.rs.core.EntityTag getFirstETag()
void setFirstETag(javax.ws.rs.core.EntityTag etag)
etag - the etagjavax.ws.rs.core.EntityTag getSecondETag()
void setSecondETag(javax.ws.rs.core.EntityTag etag)
etag - the etag@BeforeAll @DisplayName(value="Initialize Binary tests") default void beforeAllTests()
@Test @DisplayName(value="Test fetching a binary resource") default void testGetBinary()
@Test @DisplayName(value="Test fetching a binary description") default void testGetBinaryDescription()
@Test @DisplayName(value="Test creating a new binary via POST") default void testPostBinary()
@Test @DisplayName(value="Test creating a new binary via POST with a digest header") default void testPostBinaryWithDigest()
@Test @DisplayName(value="Test modifying a binary\'s description via PATCH") default void testPatchBinaryDescription()
@Test @DisplayName(value="Test that the binary appears in the parent container") default void testBinaryIsInContainer()
@Test @DisplayName(value="Test that the SHA digest is generated") default void testBinaryWantDigestSha()
@Test @DisplayName(value="Test that the SHA-256 digest is generated") default void testBinaryWantDigestSha256()
@Test @DisplayName(value="Test that an unknown digest is ignored") default void testBinaryWantDigestUnknown()