Package com.pawelmaslyk.gerritintegration4sonar.gerritconfiguration

Examples of com.pawelmaslyk.gerritintegration4sonar.gerritconfiguration.GerritConnection


      e.printStackTrace();
    }
  }

  private void analyseMeasures(Project project, SensorContext context, Logger logger) throws IOException {
    GerritConnection connection = GerritConnectionFactory.createGerritConnectionFromSonarSettings(settings);

    if (connection instanceof EmptyGerritConnection) {
      logger.info("Gerrit has not been notified, because the gerrit connection has not been defined, please check plugin settings");
      return;
    }
View Full Code Here


  @Test
  public void testIfOneCanConnectToGerrit() throws IOException {

    //given
    GerritConnection connection = GerritConnectionFactory.createGerritConnection(authKey, authKeyPassword, userName, sshPort, hostName);
    GerritCommit commit = GerritCommitFactory.createGerritCommitFromSonarSettings("gerrit-integration-plugin", "1", "1");
    SshConnection ssh = SshConnectionFactory.getConnection(connection);

    //when
    //the analysis is run, the local sonar instance must be up
View Full Code Here

TOP

Related Classes of com.pawelmaslyk.gerritintegration4sonar.gerritconfiguration.GerritConnection

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.