Package org.sonar.wsclient.services

Examples of org.sonar.wsclient.services.ServerQuery


        if(userCredentials == null) {
            sonar=Sonar.create(serverUrl);
        }else{
            sonar=Sonar.create(serverUrl, userCredentials.getUsername(), PassEncoder.decodeAsString(userCredentials.getPassword()));
        }
        ServerQuery serverQuery=new ServerQuery();
        return sonar.find(serverQuery).getVersion();
    }
View Full Code Here


    fakeSonar.findAll(MetricQuery.all());
  }

  @Test
  public void getVersion() {
    Server server = sonar.find(new ServerQuery());
    assertThat(server.getId(), Matchers.is("123456789"));
    assertThat(server.getVersion(), Matchers.is("2.0"));
  }
View Full Code Here

TOP

Related Classes of org.sonar.wsclient.services.ServerQuery

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.