Examples of GerritConnection


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

Examples of com.pawelmaslyk.gerritintegration4sonar.gerritconfiguration.GerritConnection

  @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

Examples of com.sonymobile.tools.gerrit.gerritevents.GerritConnection

        server.start();

        createGerritTriggeredJob(j, "testJob4");
        GerritHandler handler = Whitebox.getInternalState(server, GerritHandler.class);
        assertNotNull(handler);
        GerritConnection connection = Whitebox.getInternalState(server, GerritConnection.class);
        assertNull(connection);
        Collection<GerritEventListener> savedEventListeners =
                Whitebox.getInternalState(handler, "gerritEventListeners");
        // DependencyQueueTaskDispatcher adds 1 listener
        // ReplicationQueueTaskDispatcher adds 1 listener
View Full Code Here

Examples of com.sonymobile.tools.gerrit.gerritevents.GerritConnection

     */
    public synchronized void startConnection() {
        if (!config.hasDefaultValues()) {
            if (gerritConnection == null) {
                logger.debug("Starting Gerrit connection...");
                gerritConnection = new GerritConnection(name, config);
                gerritEventManager.setIgnoreEMail(name, config.getGerritEMail());
                gerritConnection.setHandler(gerritEventManager);
                gerritConnection.addListener(gerritConnectionListener);
                gerritConnection.addListener(projectListUpdater);
                gerritConnection.start();
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.