Package org.sonar.process.monitor

Examples of org.sonar.process.monitor.Monitor$MonitorShutdownHook


      .startsWith(FilenameUtils.normalize(homeDir.getAbsolutePath(), true));
  }

  @Test
  public void do_not_watch_stop_file_by_default() throws Exception {
    Monitor monitor = mock(Monitor.class);
    App app = new App(monitor);
    app.start(initDefaultProps());

    assertThat(app.getStopWatcher()).isNull();
  }
View Full Code Here


    assertThat(app.getStopWatcher()).isNull();
  }

  @Test
  public void watch_stop_file() throws Exception {
    Monitor monitor = mock(Monitor.class);
    App app = new App(monitor);
    Props props = initDefaultProps();
    props.set("sonar.enableStopCommand", "true");
    app.start(props);
View Full Code Here

    app.getStopWatcher().interrupt();
  }

  @Test
  public void start_elasticsearch_and_tomcat_by_default() throws Exception {
    Monitor monitor = mock(Monitor.class);
    App app = new App(monitor);
    Props props = initDefaultProps();
    app.start(props);

    Class<List<JavaCommand>> listClass = (Class<List<JavaCommand>>)(Class)List.class;
View Full Code Here

    assertThat(argument.getValue()).onProperty("key").containsOnly("search", "web");
  }

  @Test
  public void do_not_start_tomcat_if_elasticsearch_slave() throws Exception {
    Monitor monitor = mock(Monitor.class);
    App app = new App(monitor);
    Props props = initDefaultProps();
    props.set("sonar.cluster.masterHost", "1.2.3.4");
    app.start(props);
View Full Code Here

    assertThat(argument.getValue()).onProperty("key").containsOnly("search");
  }

  @Test
  public void add_custom_jdbc_driver_to_tomcat_classpath() throws Exception {
    Monitor monitor = mock(Monitor.class);
    App app = new App(monitor);
    Props props = initDefaultProps();
    props.set("sonar.jdbc.driverPath", "oracle/ojdbc6.jar");
    app.start(props);
View Full Code Here

TOP

Related Classes of org.sonar.process.monitor.Monitor$MonitorShutdownHook

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.