@Test(expectedExceptions = NullPointerException.class) public void testIfETagMatchesNPE() { ifETagMatches(null); }
@Test(expectedExceptions = NullPointerException.class) public void testIfETagMatchesNPE() { ifETagMatches(null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testETagDoesntMatchAfterETagMatches() { ifETagMatches(etag).ifETagDoesntMatch(etag); }
GetOptions.Builder.ifETagMatches(newEtag)); assertEquals(getBlob.getProperties().getETag(), newEtag); } catch (HttpResponseException e) {
GetOptions.Builder.ifETagMatches(newEtag)); assertEquals(getBlob.getProperties().getETag(), newEtag); } catch (HttpResponseException e) {
GetOptions.Builder.ifETagMatches(newEtag)); assertEquals(getBlob.getInfo().getHash(), base16().lowerCase().decode(newEtag)); getBlob = getApi().getObject(containerName, object.getInfo().getName(), GetOptions.Builder.startAt(8));
public void testIfUnmodifiedAfterETagMatches() { ifETagMatches(etag).ifUnmodifiedSince(now); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testETagDoesntMatchAfterETagMatches() { ifETagMatches(etag).ifETagDoesntMatch(etag); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testIfModifiedAfterETagMatches() { ifETagMatches(etag).ifModifiedSince(now); }
public void testIfUnmodifiedAfterETagMatches() { ifETagMatches(etag).ifUnmodifiedSince(now); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testIfModifiedAfterETagMatches() { ifETagMatches(etag).ifModifiedSince(now); }
@Test public void testIfETagMatchesStatic() { GetOptions options = ifETagMatches(etag); matchesHex(options.getIfMatch()); }
@Test public void testIfETagMatchesStatic() { GetOptions options = ifETagMatches(etag); matchesHex(options.getIfMatch()); }