Package org.iplantc.agave.client.model

Examples of org.iplantc.agave.client.model.MultipleClientResponse


  @Test
  public void list() {
    try {
      ClientsApi api = new ClientsApi();
      MultipleClientResponse response = api.list(Settings.API_USERNAME, Settings.API_PASSWORD);
      List<Client> clients = response.getResult();
      Assert.assertFalse(clients.isEmpty(), "No clients returned from client service listing");
    } catch (ApiException e) {
      Assert.fail("Failed to query all apps", e);
    }
  }
View Full Code Here


 
  @Test
  public void getClientByName() {
    try {
      ClientsApi api = new ClientsApi();
      MultipleClientResponse response = api.list(Settings.API_USERNAME, Settings.API_PASSWORD);
      List<Client> clients = response.getResult();
      Assert.assertFalse(clients.isEmpty(), "No clients returned from client service listing");
     
      SingleClientResponse clientResponse = api.getClientByName(Settings.API_USERNAME, Settings.API_PASSWORD, clients.get(0).getName());
      Assert.assertNotNull(clientResponse.getResult(), "Null client description returned for client " + clients.get(0).getName());
    } catch (ApiException e) {
View Full Code Here

  @Test
  public void listSubscriptionsForClient() {
    try {
      ClientsApi api = new ClientsApi();
      MultipleClientResponse response = api.list(Settings.API_USERNAME, Settings.API_PASSWORD);
      List<Client> clients = response.getResult();
      Assert.assertFalse(clients.isEmpty(), "No clients returned from client service listing");
     
      MultipleSubscriptionResponse subscriptionResponse = api.listSubscriptionsForClient(Settings.API_USERNAME, Settings.API_PASSWORD, clients.get(0).getName());
      Assert.assertNotNull(subscriptionResponse.getResult(), "Null subscriptions returned for client " + clients.get(0).getName());
      Assert.assertFalse(subscriptionResponse.getResult().isEmpty(), "No subscriptions returned for client " + clients.get(0).getName());
View Full Code Here

TOP

Related Classes of org.iplantc.agave.client.model.MultipleClientResponse

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.