Package com.openshift.internal.client.response

Examples of com.openshift.internal.client.response.QuickstartDTO


  public void shouldHave3TagsFromCommaDelimitedItems() throws Throwable {
    // pre-conditions
    String json = QuickstartTestUtils.createQuickstartJsonForTags("redhat, jboss, adietish");

    // operation
    QuickstartDTO quickstart = QuickstartTestUtils.getFirstQuickstartDTO(json);

    // verification
    assertThat(quickstart.getTags()).containsExactly("redhat", "jboss", "adietish");
  }
View Full Code Here


    // pre-conditions
    String json = QuickstartTestUtils.createQuickstartJsonForTags(ModelNode
        .fromJSONString("[ \"redhat\", \"jboss\", \"adietish\" ]"));

    // operation
    QuickstartDTO quickstart = QuickstartTestUtils.getFirstQuickstartDTO(json);

    // verification
    assertThat(quickstart.getTags()).containsExactly("redhat", "jboss", "adietish");
  }
View Full Code Here

  public void shouldHave3CartridgesFromCommaDelimitedItems() throws Throwable {
    // pre-conditions
    String json = QuickstartTestUtils.createQuickstartsJsonForCartridgeSpec("redhat, jboss, adietish");

    // operation
    QuickstartDTO quickstart = QuickstartTestUtils.getFirstQuickstartDTO(json);

    // verification
    assertThat(quickstart.getCartridges()).hasSize(3);
  }
View Full Code Here

    // pre-conditions
    String quickstartJson = QuickstartTestUtils.createQuickstartsJsonForCartridgeSpec(
        ModelNode.fromJSONString("[ \"redhat\", \"jboss\", \"adietish\" ]"));

    // operation
    QuickstartDTO dto = QuickstartTestUtils.getFirstQuickstartDTO(quickstartJson);

    // verification
    assertThat(dto.getCartridges()).hasSize(3);
  }
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.response.QuickstartDTO

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.