Examples of CartridgeResourceProperty


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

    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

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

    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

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

    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
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.