test_class.declarator: sonar
test_class.modifier: @Mock
test_class.original_string: @Mock
      org.sonar.wsclient.Sonar sonar;
test_class.type: org.sonar.wsclient.Sonar
test_class.var_name: sonar
test_class.declarator: genericSoftwareClient
test_class.modifier: @Mock
test_class.original_string: @Mock
      GenericSoftwareClient genericSoftwareClient;
test_class.type: GenericSoftwareClient
test_class.var_name: genericSoftwareClient
test_class.declarator: sonarClient
test_class.original_string: Sonar sonarClient;
test_class.type: Sonar
test_class.var_name: sonarClient
test_class.file: component/core/src/test/java/fr/norad/visuwall/providers/sonar/SonarTest.java
test_class.identifier: SonarTest
test_case.body: @Test(expected = SonarMeasureNotFoundException.class)
      public void should_throw_exception_when_resource_is_not_fond() throws SonarMeasureNotFoundException {
          when(sonar.find(Mockito.any(ResourceQuery.class))).thenReturn(null);
  
          sonarClient.findMeasure("artifactId", "measureKey");
      }
test_case.class_method_signature: SonarTest.should_throw_exception_when_resource_is_not_fond()
test_case.full_signature: @Test(expected = SonarMeasureNotFoundException.class) public void should_throw_exception_when_resource_is_not_fond()
test_case.identifier: should_throw_exception_when_resource_is_not_fond
test_case.invocations: thenReturn when find any findMeasure
test_case.modifiers: @Test(expected = SonarMeasureNotFoundException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_throw_exception_when_resource_is_not_fond()
focal_class.declarator: client
focal_class.modifier: @VisibleForTesting
focal_class.original_string: @VisibleForTesting
      GenericSoftwareClient client;
focal_class.type: GenericSoftwareClient
focal_class.var_name: client
focal_class.declarator: sonar
focal_class.modifier: @VisibleForTesting
focal_class.original_string: @VisibleForTesting
      org.sonar.wsclient.Sonar sonar;
focal_class.type: org.sonar.wsclient.Sonar
focal_class.var_name: sonar
focal_class.declarator: sonarUrl
focal_class.modifier: private
focal_class.original_string: private String sonarUrl;
focal_class.type: String
focal_class.var_name: sonarUrl
focal_class.file: component/core/src/main/java/fr/norad/visuwall/providers/sonar/Sonar.java
focal_class.identifier: Sonar
focal_class.class_method_signature: Sonar.Sonar(String url)
focal_class.full_signature: public  Sonar(String url)
focal_class.identifier: Sonar
focal_class.modifiers: public
focal_class.parameters: (String url)
focal_class.signature:  Sonar(String url)
focal_class.class_method_signature: Sonar.Sonar(String url, String login, String password)
focal_class.full_signature: public  Sonar(String url, String login, String password)
focal_class.identifier: Sonar
focal_class.modifiers: public
focal_class.parameters: (String url, String login, String password)
focal_class.signature:  Sonar(String url, String login, String password)
focal_class.class_method_signature: Sonar.findMeasure(String artifactId, String measureKey)
focal_class.full_signature: public Measure findMeasure(String artifactId, String measureKey)
focal_class.identifier: findMeasure
focal_class.modifiers: public
focal_class.parameters: (String artifactId, String measureKey)
focal_class.return: Measure
focal_class.signature: Measure findMeasure(String artifactId, String measureKey)
focal_class.class_method_signature: Sonar.findMeasureFromSonar(String artifactId, String measureKey)
focal_class.full_signature: private Measure findMeasureFromSonar(String artifactId, String measureKey)
focal_class.identifier: findMeasureFromSonar
focal_class.modifiers: private
focal_class.parameters: (String artifactId, String measureKey)
focal_class.return: Measure
focal_class.signature: Measure findMeasureFromSonar(String artifactId, String measureKey)
focal_class.class_method_signature: Sonar.findResource(String resourceId)
focal_class.full_signature: public Resource findResource(String resourceId)
focal_class.identifier: findResource
focal_class.modifiers: public
focal_class.parameters: (String resourceId)
focal_class.return: Resource
focal_class.signature: Resource findResource(String resourceId)
focal_class.class_method_signature: Sonar.findMetrics()
focal_class.full_signature: public Map<String, SonarQualityMetric> findMetrics()
focal_class.identifier: findMetrics
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, SonarQualityMetric>
focal_class.signature: Map<String, SonarQualityMetric> findMetrics()
focal_class.class_method_signature: Sonar.findProjects()
focal_class.full_signature: public Projects findProjects()
focal_class.identifier: findProjects
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Projects
focal_class.signature: Projects findProjects()
focal_class.class_method_signature: Sonar.findProject(String projectKey)
focal_class.full_signature: public Project findProject(String projectKey)
focal_class.identifier: findProject
focal_class.modifiers: public
focal_class.parameters: (String projectKey)
focal_class.return: Project
focal_class.signature: Project findProject(String projectKey)
focal_method.body: public Measure findMeasure(String artifactId, String measureKey) throws SonarMeasureNotFoundException {
          Preconditions.checkArgument(!Strings.isNullOrEmpty(artifactId), "artifactId is a mandatory parameter");
          Preconditions.checkNotNull(measureKey, "measureKey is a mandatory parameter");
          return findMeasureFromSonar(artifactId, measureKey);
      }
focal_method.class_method_signature: Sonar.findMeasure(String artifactId, String measureKey)
focal_method.full_signature: public Measure findMeasure(String artifactId, String measureKey)
focal_method.identifier: findMeasure
focal_method.invocations: checkArgument isNullOrEmpty checkNotNull findMeasureFromSonar
focal_method.modifiers: public
focal_method.parameters: (String artifactId, String measureKey)
focal_method.return: Measure
focal_method.signature: Measure findMeasure(String artifactId, String measureKey)