Examples of valueAsInt()


Examples of org.sonar.process.Props.valueAsInt()

    Props props = new Props(new Properties());
    DefaultSettings.init(props);

    assertThat(props.value("sonar.search.javaOpts")).contains("-Xmx");
    assertThat(props.value("sonar.jdbc.username")).isEqualTo("sonar");
    assertThat(props.valueAsInt("sonar.jdbc.maxActive")).isEqualTo(50);
  }

  @Test
  public void do_not_override_existing_properties() throws Exception {
    Properties p = new Properties();
View Full Code Here

Examples of org.sonar.process.Props.valueAsInt()

    Properties p = new Properties();
    p.setProperty("sonar.search.port", "0");
    Props props = new Props(p);

    DefaultSettings.init(props);
    assertThat(props.valueAsInt("sonar.search.port")).isGreaterThan(0);
  }

  @Test
  public void private_constructor() throws Exception {
    assertThat(TestUtils.hasOnlyPrivateConstructors(DefaultSettings.class)).isTrue();
View Full Code Here

Examples of org.sonar.process.Props.valueAsInt()

    assertThat(props.value("foo")).isEqualTo("bar");
    assertThat(props.value("unknown")).isNull();

    // default properties
    assertThat(props.valueAsInt("sonar.search.port")).isEqualTo(9001);
  }

  @Test
  public void create_missing_required_directory() throws Exception {
    // <home>/data is missing
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.