Examples of ICartridgeQuery


Examples of com.openshift.client.cartridge.query.ICartridgeQuery

      return null;
    }
   
    List<ICartridgeQuery> queries = new ArrayList<ICartridgeQuery>();
    for (ModelNode cartridgeSpec : cartridgesNode.asList()) {
      ICartridgeQuery query = createCartridgeQueryFromJson(cartridgeSpec);
      if (query != null) {
        queries.add(query);
      }
    }
    return queries;
View Full Code Here

Examples of com.openshift.client.cartridge.query.ICartridgeQuery

  public void shouldReturn2Cartridges() throws Throwable {
    // pre-conditions
    String cartridgesJson = QuickstartTestUtils.createQuickstartsJsonForCartridgeSpec("php-*");
   
    // operation
    ICartridgeQuery query = getFirstCartridgeQuery(cartridgesJson);
   
    // verification
    Collection<IEmbeddedCartridge> cartridges = query.getAll(CartridgeTestUtils.createEmbeddedCartridgeMocks("php-5.3", "php-5.4"));
    assertThat(cartridges).hasSize(2);
  }
View Full Code Here

Examples of com.openshift.client.cartridge.query.ICartridgeQuery

  public void shouldReturnEmptyResults() throws Throwable {
    // pre-conditions
    String cartridgesJson = QuickstartTestUtils.createQuickstartsJsonForCartridgeSpec("jboss-8");

    // operation
    ICartridgeQuery query = getFirstCartridgeQuery(cartridgesJson);

    // verification
    assertThat(query.getAll(CartridgeTestUtils.createEmbeddedCartridgeMocks("php-5.4", "jbossas-7"))).isEmpty();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.