private static void testGetResources() {
Sonar sonar = Sonar.create("https://sonar.corp.mobile.de/sonar");
ResourceQuery projectResourceQuery = new ResourceQuery();
projectResourceQuery.setQualifiers(Resource.QUALIFIER_PROJECT);
// projectResourceQuery.
List<Resource> projectResourceList = sonar.findAll(projectResourceQuery);
for (Resource projectResource : projectResourceList) {
System.out.println("##################################################");
System.out.println(projectResource.toString() + " ::: " + projectResource.getQualifier());
ResourceQuery moduleResourceQuery = new ResourceQuery(projectResource.getId());
moduleResourceQuery.setDepth(-1);