Package org.jclouds.s3

Examples of org.jclouds.s3.S3


 
  /** */
  @Test public void  testObjectStruct() {
    try
    {
      S3 a  = null;
      testServer.p_object_struct( a );
      testClient.p_object_struct( a );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here


    assertSame( e, a );
  }
 
  private void testS3Export(String s, Object value)
  {
    StructValue sv = vf.exportCustomValue( new S3( s,value ) );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_S3 );
    assertEquals( 2, sv.size() );
    assertEquals( s, sv.get( ValueFactoryTest1._mf_tipe ) );
    assertEquals( value, sv.get( ValueFactoryTest1._mf_x ) );
  }
View Full Code Here

  private void testS3Import(String s, Object value)
  {
    StructValue sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_S3, vf );
    sv.put( ValueFactoryTest1._mf_tipe, s );
    sv.put( ValueFactoryTest1._mf_x, value );
    S3 myS3 = (S3) vf.importCustomValue( sv );
    assertEquals( s, myS3.tipe );
    assertEquals( value, myS3.x );
 
View Full Code Here

    assertSame( e, a );
  }
 
  private void testS3Export(String s, Object value)
  {
    StructValue sv = vf.exportCustomValue( new S3( s,value ) );
    sv.checkType( ValueFactoryTest1._mt_org_apache_etch_tests_Test1_S3 );
    assertEquals( 2, sv.size() );
    assertEquals( s, sv.get( ValueFactoryTest1._mf_tipe ) );
    assertEquals( value, sv.get( ValueFactoryTest1._mf_x ) );
  }
View Full Code Here

  private void testS3Import(String s, Object value)
  {
    StructValue sv = new StructValue( ValueFactoryTest1._mt_org_apache_etch_tests_Test1_S3, vf );
    sv.put( ValueFactoryTest1._mf_tipe, s );
    sv.put( ValueFactoryTest1._mf_x, value );
    S3 myS3 = (S3) vf.importCustomValue( sv );
    assertEquals( s, myS3.tipe );
    assertEquals( value, myS3.x );
 
View Full Code Here

 
  /** */
  @Test public void  testObjectStruct() {
    try
    {
      S3 a  = null;
      testServer.p_object_struct( a );
      testClient.p_object_struct( a );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder(){
         id("greenqloud-storage")
         .name("GreenQloud Simple Storage Service (S3)")
         .apiMetadata(new S3ApiMetadata())
         .homepage(URI.create("http://www.greenqloud.com"))
         .console(URI.create("https://manage.greenqloud.com"))
         .linkedServices("greenqloud-compute", "greenqloud-storage")
         .iso3166Codes("IS-1")
         .endpoint("https://s.greenqloud.com")
View Full Code Here

*/
@Test(groups = "unit", testName = "GreenQloudStorageProviderTest")
public class GreenQloudStorageProviderTest extends BaseProviderMetadataTest {

   public GreenQloudStorageProviderTest() {
      super(new GreenQloudStorageProviderMetadata(), new S3ApiMetadata());
   }
View Full Code Here

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder(){
         id("greenqloud-storage")
         .name("GreenQloud Simple Storage Service (S3)")
         .apiMetadata(new S3ApiMetadata())
         .homepage(URI.create("http://www.greenqloud.com"))
         .console(URI.create("https://manage.greenqloud.com"))
         .linkedServices("greenqloud-compute", "greenqloud-storage")
         .iso3166Codes("IS-1")
         .endpoint("https://s.greenqloud.com")
View Full Code Here

*/
@Test(groups = "unit", testName = "GreenQloudStorageProviderTest")
public class GreenQloudStorageProviderTest extends BaseProviderMetadataTest {

   public GreenQloudStorageProviderTest() {
      super(new GreenQloudStorageProviderMetadata(), new S3ApiMetadata());
   }
View Full Code Here

TOP

Related Classes of org.jclouds.s3.S3

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.