test_class.declarator: metricList = createMetricList()
test_class.original_string: Map<String, SonarQualityMetric> metricList = createMetricList();
test_class.type: Map<String, SonarQualityMetric>
test_class.var_name: metricList
test_class.declarator: sonarClient
test_class.modifier: @Mock
test_class.original_string: @Mock
      Sonar sonarClient;
test_class.type: Sonar
test_class.var_name: sonarClient
test_class.declarator: sonar
test_class.original_string: SonarConnection sonar;
test_class.type: SonarConnection
test_class.var_name: sonar
test_class.declarator: properties
test_class.modifier: private
test_class.original_string: private Map<String, String> properties;
test_class.type: Map<String, String>
test_class.var_name: properties
test_class.file: component/core/src/test/java/fr/norad/visuwall/plugin/sonar/SonarConnectionTest.java
test_class.identifier: SonarConnectionTest
test_case.body: @Test
      public void projects_should_never_be_disabled() throws Exception {
          SoftwareProjectId softwareProjectId = new SoftwareProjectId("projectId");
          boolean isDisabled = sonar.isProjectDisabled(softwareProjectId);
          assertFalse(isDisabled);
      }
test_case.class_method_signature: SonarConnectionTest.projects_should_never_be_disabled()
test_case.full_signature: @Test public void projects_should_never_be_disabled()
test_case.identifier: projects_should_never_be_disabled
test_case.invocations: isProjectDisabled assertFalse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void projects_should_never_be_disabled()
focal_class.declarator: LOG = LoggerFactory.getLogger(SonarConnection.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(SonarConnection.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: id = UUID.randomUUID()
focal_class.modifier: private final
focal_class.original_string: private final UUID id = UUID.randomUUID();
focal_class.type: UUID
focal_class.var_name: id
focal_class.declarator: sonarClient
focal_class.modifier: @VisibleForTesting
focal_class.original_string: @VisibleForTesting
      Sonar sonarClient;
focal_class.type: Sonar
focal_class.var_name: sonarClient
focal_class.declarator: metricsMap
focal_class.modifier: private
focal_class.original_string: private Map<String, QualityMetric> metricsMap;
focal_class.type: Map<String, QualityMetric>
focal_class.var_name: metricsMap
focal_class.declarator: metricKeys = new String[] {}
focal_class.modifier: private
focal_class.original_string: private String[] metricKeys = new String[] {};
focal_class.type: String[]
focal_class.var_name: metricKeys
focal_class.declarator: connected
focal_class.modifier: private
focal_class.original_string: private boolean connected;
focal_class.type: boolean
focal_class.var_name: connected
focal_class.declarator: url
focal_class.modifier: private
focal_class.original_string: private String url;
focal_class.type: String
focal_class.var_name: url
focal_class.file: component/core/src/main/java/fr/norad/visuwall/plugin/sonar/SonarConnection.java
focal_class.identifier: SonarConnection
focal_class.interfaces: implements MetricCapability, TestCapability
focal_class.class_method_signature: SonarConnection.SonarConnection()
focal_class.full_signature: public  SonarConnection()
focal_class.identifier: SonarConnection
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SonarConnection()
focal_class.class_method_signature: SonarConnection.connect(String url, String login, String password)
focal_class.full_signature: @Override public void connect(String url, String login, String password)
focal_class.identifier: connect
focal_class.modifiers: @Override public
focal_class.parameters: (String url, String login, String password)
focal_class.return: void
focal_class.signature: void connect(String url, String login, String password)
focal_class.class_method_signature: SonarConnection.getMetricsByCategory()
focal_class.full_signature: @Override public Map<String, List<QualityMetric>> getMetricsByCategory()
focal_class.identifier: getMetricsByCategory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, List<QualityMetric>>
focal_class.signature: Map<String, List<QualityMetric>> getMetricsByCategory()
focal_class.class_method_signature: SonarConnection.listSoftwareProjectIds()
focal_class.full_signature: @Override public Map<SoftwareProjectId, String> listSoftwareProjectIds()
focal_class.identifier: listSoftwareProjectIds
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<SoftwareProjectId, String>
focal_class.signature: Map<SoftwareProjectId, String> listSoftwareProjectIds()
focal_class.class_method_signature: SonarConnection.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: SonarConnection.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: SonarConnection.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: SonarConnection.getDescription(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public String getDescription(SoftwareProjectId softwareProjectId)
focal_class.identifier: getDescription
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: String
focal_class.signature: String getDescription(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: SonarConnection.identify(ProjectKey projectKey)
focal_class.full_signature: @Override public SoftwareProjectId identify(ProjectKey projectKey)
focal_class.identifier: identify
focal_class.modifiers: @Override public
focal_class.parameters: (ProjectKey projectKey)
focal_class.return: SoftwareProjectId
focal_class.signature: SoftwareProjectId identify(ProjectKey projectKey)
focal_class.class_method_signature: SonarConnection.analyzeUnitTests(SoftwareProjectId projectId)
focal_class.full_signature: @Override public TestResult analyzeUnitTests(SoftwareProjectId projectId)
focal_class.identifier: analyzeUnitTests
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId projectId)
focal_class.return: TestResult
focal_class.signature: TestResult analyzeUnitTests(SoftwareProjectId projectId)
focal_class.class_method_signature: SonarConnection.analyzeIntegrationTests(SoftwareProjectId projectId)
focal_class.full_signature: @Override public TestResult analyzeIntegrationTests(SoftwareProjectId projectId)
focal_class.identifier: analyzeIntegrationTests
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId projectId)
focal_class.return: TestResult
focal_class.signature: TestResult analyzeIntegrationTests(SoftwareProjectId projectId)
focal_class.class_method_signature: SonarConnection.analyzeQuality(SoftwareProjectId projectId, String... metrics)
focal_class.full_signature: @Override public QualityResult analyzeQuality(SoftwareProjectId projectId, String... metrics)
focal_class.identifier: analyzeQuality
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId projectId, String... metrics)
focal_class.return: QualityResult
focal_class.signature: QualityResult analyzeQuality(SoftwareProjectId projectId, String... metrics)
focal_class.class_method_signature: SonarConnection.addQualityMeasure(QualityResult qualityResult, String artifactId, String key)
focal_class.full_signature: private void addQualityMeasure(QualityResult qualityResult, String artifactId, String key)
focal_class.identifier: addQualityMeasure
focal_class.modifiers: private
focal_class.parameters: (QualityResult qualityResult, String artifactId, String key)
focal_class.return: void
focal_class.signature: void addQualityMeasure(QualityResult qualityResult, String artifactId, String key)
focal_class.class_method_signature: SonarConnection.asQualityMeasure(SonarQualityMeasure sonarQualityMeasure)
focal_class.full_signature: private QualityMeasure asQualityMeasure(SonarQualityMeasure sonarQualityMeasure)
focal_class.identifier: asQualityMeasure
focal_class.modifiers: private
focal_class.parameters: (SonarQualityMeasure sonarQualityMeasure)
focal_class.return: QualityMeasure
focal_class.signature: QualityMeasure asQualityMeasure(SonarQualityMeasure sonarQualityMeasure)
focal_class.class_method_signature: SonarConnection.getMavenId(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public String getMavenId(SoftwareProjectId softwareProjectId)
focal_class.identifier: getMavenId
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: String
focal_class.signature: String getMavenId(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: SonarConnection.getName(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public String getName(SoftwareProjectId softwareProjectId)
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: String
focal_class.signature: String getName(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: SonarConnection.isClosed()
focal_class.full_signature: @Override public boolean isClosed()
focal_class.identifier: isClosed
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isClosed()
focal_class.class_method_signature: SonarConnection.isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Override public boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_class.identifier: isProjectDisabled
focal_class.modifiers: @Override public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: boolean
focal_class.signature: boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: SonarConnection.createUnitTestAnalysis(String artifactId)
focal_class.full_signature: private TestResult createUnitTestAnalysis(String artifactId)
focal_class.identifier: createUnitTestAnalysis
focal_class.modifiers: private
focal_class.parameters: (String artifactId)
focal_class.return: TestResult
focal_class.signature: TestResult createUnitTestAnalysis(String artifactId)
focal_class.class_method_signature: SonarConnection.initializeMetrics()
focal_class.full_signature: private void initializeMetrics()
focal_class.identifier: initializeMetrics
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initializeMetrics()
focal_class.class_method_signature: SonarConnection.asMetrics(Map<String, SonarQualityMetric> sonarMetrics)
focal_class.full_signature: private Map<String, QualityMetric> asMetrics(Map<String, SonarQualityMetric> sonarMetrics)
focal_class.identifier: asMetrics
focal_class.modifiers: private
focal_class.parameters: (Map<String, SonarQualityMetric> sonarMetrics)
focal_class.return: Map<String, QualityMetric>
focal_class.signature: Map<String, QualityMetric> asMetrics(Map<String, SonarQualityMetric> sonarMetrics)
focal_class.class_method_signature: SonarConnection.asQualityMetric(SonarQualityMetric sonarQualityMetric)
focal_class.full_signature: private QualityMetric asQualityMetric(SonarQualityMetric sonarQualityMetric)
focal_class.identifier: asQualityMetric
focal_class.modifiers: private
focal_class.parameters: (SonarQualityMetric sonarQualityMetric)
focal_class.return: QualityMetric
focal_class.signature: QualityMetric asQualityMetric(SonarQualityMetric sonarQualityMetric)
focal_class.class_method_signature: SonarConnection.getBuildTime(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.full_signature: public BuildTime getBuildTime(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.identifier: getBuildTime
focal_class.modifiers: public
focal_class.parameters: (SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.return: BuildTime
focal_class.signature: BuildTime getBuildTime(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.class_method_signature: SonarConnection.getBuildIds(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Deprecated // NOT USED public List<Integer> getBuildIds(SoftwareProjectId softwareProjectId)
focal_class.identifier: getBuildIds
focal_class.modifiers: @Deprecated // NOT USED public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> getBuildIds(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: SonarConnection.getBuildState(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.full_signature: @Deprecated // NOT USED public BuildState getBuildState(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.identifier: getBuildState
focal_class.modifiers: @Deprecated // NOT USED public
focal_class.parameters: (SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.return: BuildState
focal_class.signature: BuildState getBuildState(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.class_method_signature: SonarConnection.getEstimatedFinishTime(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.full_signature: @Deprecated // NOT USED public Date getEstimatedFinishTime(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.identifier: getEstimatedFinishTime
focal_class.modifiers: @Deprecated // NOT USED public
focal_class.parameters: (SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.return: Date
focal_class.signature: Date getEstimatedFinishTime(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.class_method_signature: SonarConnection.isBuilding(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.full_signature: @Deprecated // NOT USED public boolean isBuilding(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.identifier: isBuilding
focal_class.modifiers: @Deprecated // NOT USED public
focal_class.parameters: (SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.return: boolean
focal_class.signature: boolean isBuilding(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.class_method_signature: SonarConnection.getLastBuildId(SoftwareProjectId softwareProjectId)
focal_class.full_signature: @Deprecated // NOT USED public int getLastBuildId(SoftwareProjectId softwareProjectId)
focal_class.identifier: getLastBuildId
focal_class.modifiers: @Deprecated // NOT USED public
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: int
focal_class.signature: int getLastBuildId(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: SonarConnection.getBuildCommiters(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.full_signature: @Deprecated // NOT USED public List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.identifier: getBuildCommiters
focal_class.modifiers: @Deprecated // NOT USED public
focal_class.parameters: (SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.return: List<Commiter>
focal_class.signature: List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId, Integer buildId)
focal_class.class_method_signature: SonarConnection.checkBuildId(int buildId)
focal_class.full_signature: private void checkBuildId(int buildId)
focal_class.identifier: checkBuildId
focal_class.modifiers: private
focal_class.parameters: (int buildId)
focal_class.return: void
focal_class.signature: void checkBuildId(int buildId)
focal_class.class_method_signature: SonarConnection.checkSoftwareProjectId(SoftwareProjectId softwareProjectId)
focal_class.full_signature: private void checkSoftwareProjectId(SoftwareProjectId softwareProjectId)
focal_class.identifier: checkSoftwareProjectId
focal_class.modifiers: private
focal_class.parameters: (SoftwareProjectId softwareProjectId)
focal_class.return: void
focal_class.signature: void checkSoftwareProjectId(SoftwareProjectId softwareProjectId)
focal_class.class_method_signature: SonarConnection.checkConnected()
focal_class.full_signature: private void checkConnected()
focal_class.identifier: checkConnected
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkConnected()
focal_method.body: @Override
      public boolean isProjectDisabled(SoftwareProjectId softwareProjectId) throws ProjectNotFoundException {
          checkConnected();
          checkSoftwareProjectId(softwareProjectId);
          try {
              String artifactId = softwareProjectId.getProjectId();
              sonarClient.findProject(artifactId);
          } catch (SonarProjectNotFoundException e) {
              throw new ProjectNotFoundException("Can't find if project is disabled, softwareProjectId:"
                      + softwareProjectId + ", url: " + url);
          }
          return false;
      }
focal_method.class_method_signature: SonarConnection.isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_method.full_signature: @Override public boolean isProjectDisabled(SoftwareProjectId softwareProjectId)
focal_method.identifier: isProjectDisabled
focal_method.invocations: checkConnected checkSoftwareProjectId getProjectId findProject
focal_method.modifiers: @Override public
focal_method.parameters: (SoftwareProjectId softwareProjectId)
focal_method.return: boolean
focal_method.signature: boolean isProjectDisabled(SoftwareProjectId softwareProjectId)