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, toString
assertEquals, 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, format
protected 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.Exception
protected abstract ProviderCredentials getCredentials() throws java.lang.Exception
java.lang.Exception
protected abstract RestStorageService getStorageService(ProviderCredentials credentials) throws java.lang.Exception
java.lang.Exception
protected 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.Exception
protected StorageBucket createBucketForTest(java.lang.String testName) throws java.lang.Exception
java.lang.Exception
protected 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.Exception
public void testBucketManagement() throws java.lang.Exception
java.lang.Exception
public void testBucketStatusLookup() throws java.lang.Exception
java.lang.Exception
public void testObjectManagement() throws java.lang.Exception
java.lang.Exception
public void testDirectoryPlaceholderObjects() throws java.lang.Exception
java.lang.Exception
public void testCopyObjects() throws java.lang.Exception
java.lang.Exception
public void testUnicodeData() throws java.lang.Exception
java.lang.Exception
public void testACLManagement() throws java.lang.Exception
java.lang.Exception
public void testACLManagementViaRestHeaders() throws java.lang.Exception
java.lang.Exception
public void testObjectListing() throws java.lang.Exception
java.lang.Exception
public void testHashVerifiedUploads() throws java.lang.Exception
java.lang.Exception
public void testIsObjectInBucket() throws java.lang.Exception
java.lang.Exception
public void testThreadedStorageService() throws java.lang.Exception
java.lang.Exception
public void testSimpleThreadedStorageService() throws java.lang.Exception
java.lang.Exception
public void testRecognizeDnsFriendlyBucketNames()
public void testFileComparer() throws java.lang.Exception
java.lang.Exception