From b6f3c29e110cb11ea61880f57a6184bbca922236 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sun, 29 May 2011 23:51:03 -0700 Subject: [PATCH] cloudfiles now stores content disposition --- .../integration/CloudFilesBlobIntegrationLiveTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apis/cloudfiles/src/test/java/org/jclouds/cloudfiles/blobstore/integration/CloudFilesBlobIntegrationLiveTest.java b/apis/cloudfiles/src/test/java/org/jclouds/cloudfiles/blobstore/integration/CloudFilesBlobIntegrationLiveTest.java index 997119b1ce..103b405279 100644 --- a/apis/cloudfiles/src/test/java/org/jclouds/cloudfiles/blobstore/integration/CloudFilesBlobIntegrationLiveTest.java +++ b/apis/cloudfiles/src/test/java/org/jclouds/cloudfiles/blobstore/integration/CloudFilesBlobIntegrationLiveTest.java @@ -18,6 +18,7 @@ */ package org.jclouds.cloudfiles.blobstore.integration; +import org.jclouds.blobstore.domain.Blob; import org.jclouds.openstack.swift.blobstore.integration.SwiftBlobIntegrationLiveTest; import org.testng.annotations.Test; @@ -27,6 +28,12 @@ import org.testng.annotations.Test; */ @Test(groups = "live") public class CloudFilesBlobIntegrationLiveTest extends SwiftBlobIntegrationLiveTest { - + @Override + protected void checkContentDisposition(Blob blob, String contentDisposition) { + assert blob.getPayload().getContentMetadata().getContentDisposition().startsWith(contentDisposition) : blob + .getPayload().getContentMetadata().getContentDisposition(); + assert blob.getMetadata().getContentMetadata().getContentDisposition().startsWith(contentDisposition) : blob + .getMetadata().getContentMetadata().getContentDisposition(); + } }