System.out.println("language: " + resourceWithProfile.getLanguage());
System.out.println("profile: " + resourceWithProfile.getMeasure("profile").getData());
}
private static void testGetAllProjectsAndModulesBySonarService() {
SonarServer sonarServer = SonarServer.create("https://sonar.corp.mobile.de/sonar");
List<Resource> allProjectsWithModules = sonarServer.getAllProjectsAndModules();
for (Resource projectOrModule : allProjectsWithModules) {
if (projectOrModule.getQualifier().equals(Resource.QUALIFIER_PROJECT)) {
System.out.println("##################################################");
System.out.println(projectOrModule.getName() + " (" + projectOrModule.getKey() + ")");
} else if (projectOrModule.getQualifier().equals(Resource.QUALIFIER_MODULE)) {