Package org.sonar.process

Examples of org.sonar.process.Props


    p.setProperty("sonar.web.port", "9000");
    p.setProperty("sonar.ajp.port", "9000");
    p.setProperty("sonar.web.https.port", "9000");

    try {
      Connectors.configure(tomcat, new Props(p));
      fail();
    } catch (IllegalStateException e) {
      assertThat(e).hasMessage("HTTP, AJP and HTTPS must not use the same port 9000");
    }
  }
View Full Code Here


    Properties p = new Properties();
    p.setProperty("sonar.web.port", "9000");
    p.setProperty("sonar.ajp.port", "9009");
    p.setProperty("sonar.web.https.port", "9443");

    Connectors.configure(tomcat, new Props(p));

    verify(tomcat.getService()).addConnector(argThat(new ArgumentMatcher<Connector>() {
      @Override
      public boolean matches(Object o) {
        Connector c = (Connector) o;
View Full Code Here

    Properties p = new Properties();
    p.setProperty("sonar.web.port", "9000");
    p.setProperty("sonar.web.https.port", "9443");
    p.setProperty("sonar.web.host", "1.2.3.4");

    Connectors.configure(tomcat, new Props(p));

    verify(tomcat.getService()).addConnector(argThat(new ArgumentMatcher<Connector>() {
      @Override
      public boolean matches(Object o) {
        Connector c = (Connector) o;
View Full Code Here

    p.setProperty("sonar.web.port", "-1");
    p.setProperty("sonar.web.https.port", "9443");
    p.setProperty("sonar.web.https.clientAuth", "want");

    Props props = new Props(p);

    Connectors.configure(tomcat, props);

    verify(tomcat).setConnector(argThat(new ArgumentMatcher<Connector>() {
      @Override
View Full Code Here

    p.setProperty("sonar.web.port", "-1");
    p.setProperty("sonar.web.https.port", "9443");
    p.setProperty("sonar.web.https.clientAuth", "true");

    Props props = new Props(p);

    Connectors.configure(tomcat, props);

    verify(tomcat).setConnector(argThat(new ArgumentMatcher<Connector>() {
      @Override
View Full Code Here

TOP

Related Classes of org.sonar.process.Props

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.