Package com.cloudloop.storage.adapter.amazonS3

Examples of com.cloudloop.storage.adapter.amazonS3.AmazonS3CloudStore


 
  deleteOldBuckets( );
  deleteBucketIfExists( );
 
  ProviderRequestExecutor executor = new ProviderRequestExecutor( 5, 250 );
  _cloudStore = new AmazonS3CloudStore( getTestConfigToken( ), false,
    null,
    executor, _testEnvironment.getProps( getTestConfigToken( ) ) );
    }
View Full Code Here


    {
  Properties configProps = new Properties( );
  try
  {
      ProviderRequestExecutor requestExecutor = new ProviderRequestExecutor( );
      new AmazonS3CloudStore( getTestConfigToken( ), false, null,
        requestExecutor, configProps );
      fail( );
  }
  catch ( InvalidConfigurationException e )
  {
View Full Code Here

  configProps.put( AmazonS3AdapterConstants.CONFIGPROP_SECRET_KEY,
       "somesecretkey" );
  try
  {
      ProviderRequestExecutor requestExecutor = new ProviderRequestExecutor( );
      new AmazonS3CloudStore( getTestConfigToken( ), false, null,
        requestExecutor, configProps );
      fail( );
  }
  catch ( InvalidConfigurationException e )
  {
View Full Code Here

   
    public void testConstruction_BucketDoesNotExist( )
    {
  deleteBucketIfExists( );
  ProviderRequestExecutor requestExecutor = new ProviderRequestExecutor( );
  new AmazonS3CloudStore( getTestConfigToken( ), false, null,
    requestExecutor, _testEnvironment
    .getProps( getTestConfigToken( ) ) );
  assertTrue( bucketExists( _bucket ) );
    }
View Full Code Here

   
    public void testConstruction_BucketAlreadyExists( )
    {
  createBucket( _bucket );
  ProviderRequestExecutor requestExecutor = new ProviderRequestExecutor( );
  new AmazonS3CloudStore( getTestConfigToken( ), false, null,
    requestExecutor, _testEnvironment
    .getProps( getTestConfigToken( ) ) );
  assertTrue( bucketExists( _bucket ) );
    }
View Full Code Here

  props.setProperty( AmazonS3AdapterConstants.CONFIGPROP_BUCKET_NAME,
         "<>invalidbucket#@&Hf--" );
  try
  {
      ProviderRequestExecutor requestExecutor = new ProviderRequestExecutor( );
      new AmazonS3CloudStore( getTestConfigToken( ), false, null,
        requestExecutor, props );
      fail( );
  }
  catch ( InvalidConfigurationException e )
  {
View Full Code Here

    public void testBucketExists( )
    {
  deleteBucketIfExists( );
  createBucket( _bucket );
  ProviderRequestExecutor requestExecutor = new ProviderRequestExecutor( );
  AmazonS3CloudStore store = new AmazonS3CloudStore(
    getTestConfigToken( ),
    false, null, requestExecutor, _testEnvironment
      .getProps( getTestConfigToken( ) ) );
  assertTrue( store.bucketExists( _bucket ) );
    }
View Full Code Here

   
    public void testCreateBucket( )
    {
  deleteBucketIfExists( );
  ProviderRequestExecutor requestExecutor = new ProviderRequestExecutor( );
  AmazonS3CloudStore store = new AmazonS3CloudStore(
    getTestConfigToken( ),
    false, null, requestExecutor, _testEnvironment
      .getProps( getTestConfigToken( ) ) );
  deleteBucketIfExists( );
  store.createBucket( _bucket );
  assertTrue( bucketExists( _bucket ) );
    }
View Full Code Here

   
    public void testDeleteBucket( )
    {
  deleteBucketIfExists( );
  ProviderRequestExecutor requestExecutor = new ProviderRequestExecutor( );
  AmazonS3CloudStore store = new AmazonS3CloudStore(
    getTestConfigToken( ),
    false, null, requestExecutor, _testEnvironment
      .getProps( getTestConfigToken( ) ) );
  store.deleteBucket( _bucket );
  assertFalse( bucketExists( _bucket ) );
    }
View Full Code Here

 
  deleteBucketIfExists( );
 
  ProviderRequestExecutor requestExecutor = new ProviderRequestExecutor(
    5, 250 );
  return new AmazonS3CloudStore( getTestStoreToken( ), false, null,
    requestExecutor, _testEnvironment
    .getProps( getTestStoreToken( ) ) );
    }
View Full Code Here

TOP

Related Classes of com.cloudloop.storage.adapter.amazonS3.AmazonS3CloudStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.