@Test(expectedExceptions = NullPointerException.class) public void testIfETagDoesntMatchNPE() { ifETagDoesntMatch(null); }
@Test(expectedExceptions = NullPointerException.class) public void testIfETagDoesntMatchNPE() { ifETagDoesntMatch(null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testIfUnmodifiedAfterETagDoesntMatch() { ifETagDoesntMatch(etag).ifUnmodifiedSince(now); }
GetOptions.Builder.ifETagDoesntMatch(newEtag)); } catch (Exception e) { HttpResponseException httpEx = Throwables2.getFirstThrowableOfType(e, HttpResponseException.class);
GetOptions.Builder.ifETagDoesntMatch(newEtag)); } catch (Exception e) { HttpResponseException httpEx = Throwables2.getFirstThrowableOfType(e, HttpResponseException.class);
getApi() .getObject(containerName, object.getInfo().getName(), GetOptions.Builder.ifETagDoesntMatch(newEtag)); } catch (HttpResponseException e) { assertEquals(e.getResponse().getStatusCode(), 304);
public void testIfModifiedAfterETagDoesntMatch() { ifETagDoesntMatch(etag).ifModifiedSince(now); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testIfUnmodifiedAfterETagDoesntMatch() { ifETagDoesntMatch(etag).ifUnmodifiedSince(now); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testETagMatchesAfterETagDoesntMatch() { ifETagDoesntMatch(etag).ifETagMatches(etag); }
public void testIfModifiedAfterETagDoesntMatch() { ifETagDoesntMatch(etag).ifModifiedSince(now); }
@Test public void testIfETagDoesntMatchStatic() { GetOptions options = ifETagDoesntMatch(etag); matchesHex(options.getIfNoneMatch()); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testETagMatchesAfterETagDoesntMatch() { ifETagDoesntMatch(etag).ifETagMatches(etag); }
@Test public void testIfETagDoesntMatchStatic() { GetOptions options = ifETagDoesntMatch(etag); matchesHex(options.getIfNoneMatch()); }