org.jets3t.tests
Class BaseS3ServiceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jets3t.tests.BaseS3ServiceTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AxisSoapS3ServiceTest, HttpClientRestS3ServiceTest

public abstract class BaseS3ServiceTest
extends junit.framework.TestCase

Runs generic S3Service-related tests that any S3Service implementation should be able to perform.

Any test case for S3Service implementations should extend this class as a starting point, then add more test cases more specific to that particular implementation.

Author:
James Murty

Field Summary
protected  AWSCredentials awsCredentials
           
protected  java.lang.String TEST_PROPERTIES_FILENAME
           
 
Constructor Summary
BaseS3ServiceTest()
           
 
Method Summary
protected abstract  S3Service getS3Service(AWSCredentials awsCredentials)
           
 void testACLManagement()
           
 void testBucketLogging()
           
 void testBucketManagement()
           
 void testHashVerifiedUploads()
           
 void testListBucketsWithCredentials()
           
 void testListBucketsWithoutCredentials()
           
 void testObjectListing()
           
 void testObjectManagement()
           
 void testObtainAnonymousServices()
           
 void testUrlSigning()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_PROPERTIES_FILENAME

protected java.lang.String TEST_PROPERTIES_FILENAME

awsCredentials

protected AWSCredentials awsCredentials
Constructor Detail

BaseS3ServiceTest

public BaseS3ServiceTest()
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getS3Service

protected abstract S3Service getS3Service(AWSCredentials awsCredentials)
                                   throws S3ServiceException
Throws:
S3ServiceException

testObtainAnonymousServices

public void testObtainAnonymousServices()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testListBucketsWithoutCredentials

public void testListBucketsWithoutCredentials()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testListBucketsWithCredentials

public void testListBucketsWithCredentials()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testBucketManagement

public void testBucketManagement()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testObjectManagement

public void testObjectManagement()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testACLManagement

public void testACLManagement()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testObjectListing

public void testObjectListing()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testBucketLogging

public void testBucketLogging()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testUrlSigning

public void testUrlSigning()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testHashVerifiedUploads

public void testHashVerifiedUploads()
                             throws java.lang.Exception
Throws:
java.lang.Exception