Package org.apache.deltacloud.client

Examples of org.apache.deltacloud.client.API


*/
public class APIDomUnmarshallingTest {

  @Test
  public void ec2DriverIsUnmarshalled() throws MalformedURLException, DeltaCloudClientException {
    API api = new API();
    ByteArrayInputStream inputStream = new ByteArrayInputStream(APIResponse.apiResponse.getBytes());
    new APIUnmarshaller().unmarshall(inputStream, api);
    assertNotNull(api);
    assertEquals(APIResponse.driver, api.getDriver().name().toLowerCase());
  }
View Full Code Here


    assertEquals(APIResponse.driver, api.getDriver().name().toLowerCase());
  }

  @Test
  public void invalidDriverUnmarshalledToUnknown() throws MalformedURLException, DeltaCloudClientException {
    API api = new API();
    ByteArrayInputStream inputStream = new ByteArrayInputStream(APIResponse.invalidDriverApiResponse.getBytes());
    new APIUnmarshaller().unmarshall(inputStream, api);
    assertNotNull(api);
    assertEquals(Driver.UNKNOWN, api.getDriver());
  }
View Full Code Here

TOP

Related Classes of org.apache.deltacloud.client.API

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.