call super and added comment

This commit is contained in:
Jason King 2011-10-21 16:15:41 +01:00
parent b92d55bc05
commit 6d56364cd0
1 changed files with 4 additions and 8 deletions

View File

@ -38,16 +38,12 @@ public class SwiftBlobIntegrationLiveTest extends BaseBlobIntegrationTest {
// not supported in swift
}
// When testing against Swift Server 1.4.4/SWauth 1.0.3 the content dispositions are not null
@Override
protected void checkContentDisposition(Blob blob, String contentDisposition) {
String payloadContentDisposition = blob.getPayload().getContentMetadata().getContentDisposition();
assert payloadContentDisposition != null : "blob payload contentDisposition should not be null";
assertEquals(contentDisposition, payloadContentDisposition);
String blobContentDisposition = blob.getMetadata().getContentMetadata().getContentDisposition();
assert blobContentDisposition != null : "blob metadata contentDisposition should not be null";
assertEquals(contentDisposition, blobContentDisposition);
// This works for Swift Server 1.4.4/SWauth 1.0.3 but was null in previous versions.
// TODO: Better testing for the different versions.
super.checkContentDisposition(blob,contentDisposition);
}
// not supported in swift