Package com.openshift.client.cartridge.query

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


    // operation
    IEmbeddedCartridge mongo = application.getEmbeddedCartridge(CartridgeTestUtils.MONGODB_22_NAME);
    IEmbeddedCartridge mysql = application.getEmbeddedCartridge(CartridgeTestUtils.MYSQL_51_NAME);

    // verifications
    UrlPropertyQuery selector = new UrlPropertyQuery();
    CartridgeResourceProperty property = selector.getMatchingProperty(mysql);
    assertThat(property).isNotNull();
    assertThat(property.getValue()).isEqualTo("mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/");
    property = selector.getMatchingProperty(mongo);
    assertThat(property).isNotNull();
    assertThat(property.getValue()).isEqualTo("mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/");
  }
View Full Code Here


    assertThat(cartridge.getMessages().getAll()).isNotEmpty();
    return this;
  }

  public EmbeddedCartridgeAssert hasUrlProperty() {
    CartridgeResourceProperty property = new UrlPropertyQuery().getMatchingProperty(cartridge);
    assertThat(property).isNotNull();
    assertThat(property.getValue()).isNotEmpty();
    return this;
  }
View Full Code Here

    assertThat(property.getValue()).isNotEmpty();
    return this;
  }

  public EmbeddedCartridgeAssert hasUrlProperty(String url) {
    CartridgeResourceProperty property = new UrlPropertyQuery().getMatchingProperty(cartridge);
    assertThat(property).isNotNull();
    assertThat(property.getValue()).isEqualTo(url);
    return this;
  }
View Full Code Here

TOP

Related Classes of com.openshift.client.cartridge.query.UrlPropertyQuery

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.