public abstract class BaseStorageServiceTests
extends junit.framework.TestCase
Any test cases for specific StorageService implementations should extend this class as a starting point, then add test cases specific to that particular implementation.
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
TARGET_SERVICE_GS |
protected static java.lang.String |
TARGET_SERVICE_S3 |
protected java.lang.String |
TEST_PROPERTIES_FILENAME |
protected java.util.Properties |
testProperties |
| Constructor and Description |
|---|
BaseStorageServiceTests() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatprotected static final java.lang.String TARGET_SERVICE_S3
protected static final java.lang.String TARGET_SERVICE_GS
protected java.lang.String TEST_PROPERTIES_FILENAME
protected java.util.Properties testProperties
public BaseStorageServiceTests()
throws java.lang.Exception
java.lang.Exceptionprotected abstract ProviderCredentials getCredentials() throws java.lang.Exception
java.lang.Exceptionprotected abstract RestStorageService getStorageService(ProviderCredentials credentials) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.lang.String getTargetService()
protected abstract AccessControlList buildAccessControlList()
protected java.lang.String getBucketNameForTest(java.lang.String testName)
throws java.lang.Exception
testName - java.lang.Exceptionprotected StorageBucket createBucketForTest(java.lang.String testName) throws java.lang.Exception
java.lang.Exceptionprotected void deleteAllObjectsInBucket(java.lang.String bucketName)
protected void cleanupBucketForTest(java.lang.String testName,
boolean deleteAllObjects)
protected void cleanupBucketForTest(java.lang.String testName)
public void testListBuckets()
throws java.lang.Exception
java.lang.Exceptionpublic void testBucketManagement()
throws java.lang.Exception
java.lang.Exceptionpublic void testBucketStatusLookup()
throws java.lang.Exception
java.lang.Exceptionpublic void testObjectManagement()
throws java.lang.Exception
java.lang.Exceptionpublic void testDirectoryPlaceholderObjects()
throws java.lang.Exception
java.lang.Exceptionpublic void testCopyObjects()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnicodeData()
throws java.lang.Exception
java.lang.Exceptionpublic void testACLManagement()
throws java.lang.Exception
java.lang.Exceptionpublic void testACLManagementViaRestHeaders()
throws java.lang.Exception
java.lang.Exceptionpublic void testObjectListing()
throws java.lang.Exception
java.lang.Exceptionpublic void testHashVerifiedUploads()
throws java.lang.Exception
java.lang.Exceptionpublic void testIsObjectInBucket()
throws java.lang.Exception
java.lang.Exceptionpublic void testThreadedStorageService()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleThreadedStorageService()
throws java.lang.Exception
java.lang.Exceptionpublic void testRecognizeDnsFriendlyBucketNames()
public void testFileComparer()
throws java.lang.Exception
java.lang.Exception