Package com.ibm.sbt.services.client.base

Examples of com.ibm.sbt.services.client.base.Version


  @Test
  public final void testDeleteCommunity() throws Exception {
    String communityUuid = community.getCommunityUuid();
    communityService.deleteCommunity(communityUuid);
    if (communityService.getApiVersion().lessThan(new Version(5, 0))){
      thrown.expect(ClientServicesException.class);
      thrown.expectMessage("404:Not Found");
      thrown.expectMessage("Request to url");
      community = communityService.getCommunity(communityUuid);
    }
View Full Code Here


      }
    }
  }
 
  protected boolean isV5OrHigher() {
    Version version = activityService.getApiVersion();
    return version.isAtLeast(5);
  }
View Full Code Here

  protected boolean isV5OrHigher() {
    Endpoint endpoint = getEndpoint();
    String apiVersion = endpoint.getApiVersion();
    if (StringUtil.isNotEmpty(apiVersion)) {
      Version version = Version.parse(apiVersion);
      return (version.getMajor() >= 5);
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.base.Version

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.