@Override public Optional<String> cacheControl() { return Optional.fromNullable(info.getCacheControl()); }
tgtInfoBuilder.setCacheControl(blobInfo.getCacheControl());
assertEquals(expected.getComponentCount(), value.getComponentCount()); assertEquals(expected.getContentType(), value.getContentType()); assertEquals(expected.getCacheControl(), value.getCacheControl()); assertEquals(expected.getContentDisposition(), value.getContentDisposition()); assertEquals(expected.getContentEncoding(), value.getContentEncoding());
@Override public Optional<String> cacheControl() { return Optional.fromNullable(info.getCacheControl()); }
assertEquals(COMPONENT_COUNT, BLOB_INFO.getComponentCount()); assertEquals(CONTENT_TYPE, BLOB_INFO.getContentType()); assertEquals(CACHE_CONTROL, BLOB_INFO.getCacheControl()); assertEquals(CONTENT_DISPOSITION, BLOB_INFO.getContentDisposition()); assertEquals(CONTENT_ENCODING, BLOB_INFO.getContentEncoding()); assertNull(DIRECTORY_INFO.getComponentCount()); assertNull(DIRECTORY_INFO.getContentType()); assertNull(DIRECTORY_INFO.getCacheControl()); assertNull(DIRECTORY_INFO.getContentDisposition()); assertNull(DIRECTORY_INFO.getContentEncoding());
assertNull(blobInfo.getComponentCount()); assertNull(blobInfo.getContentType()); assertNull(blobInfo.getCacheControl()); assertNull(blobInfo.getContentDisposition()); assertNull(blobInfo.getContentEncoding());
tgtInfoBuilder.setCacheControl(blobInfo.getCacheControl());