test_class.declarator: sve = new SonarVersionExtractor()
test_class.original_string: SonarVersionExtractor sve = new SonarVersionExtractor();
test_class.type: SonarVersionExtractor
test_class.var_name: sve
test_class.declarator: classLoader = SonarVersionExtractorTest.class.getClassLoader()
test_class.original_string: ClassLoader classLoader = SonarVersionExtractorTest.class.getClassLoader();
test_class.type: ClassLoader
test_class.var_name: classLoader
test_class.file: component/core/src/test/java/fr/norad/visuwall/plugin/sonar/SonarVersionExtractorTest.java
test_class.identifier: SonarVersionExtractorTest
test_case.body: @Test
      public void should_extract_version_from_sonar_properties() {
          InputStream stream = classLoader.getResourceAsStream("sonar_version_page.xml");
  
          String version = sve.propertiesVersion(loadProperties(stream));
  
          assertEquals("2.8", version);
      }
test_case.class_method_signature: SonarVersionExtractorTest.should_extract_version_from_sonar_properties()
test_case.full_signature: @Test public void should_extract_version_from_sonar_properties()
test_case.identifier: should_extract_version_from_sonar_properties
test_case.invocations: getResourceAsStream propertiesVersion loadProperties assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_extract_version_from_sonar_properties()
focal_class.declarator: SONAR_CORE_VERSION_KEY = "sonar.core.version"
focal_class.modifier: private static final
focal_class.original_string: private static final String SONAR_CORE_VERSION_KEY = "sonar.core.version";
focal_class.type: String
focal_class.var_name: SONAR_CORE_VERSION_KEY
focal_class.file: component/core/src/main/java/fr/norad/visuwall/plugin/sonar/SonarVersionExtractor.java
focal_class.identifier: SonarVersionExtractor
focal_class.class_method_signature: SonarVersionExtractor.propertiesVersion(Properties properties)
focal_class.full_signature: public String propertiesVersion(Properties properties)
focal_class.identifier: propertiesVersion
focal_class.modifiers: public
focal_class.parameters: (Properties properties)
focal_class.return: String
focal_class.signature: String propertiesVersion(Properties properties)
focal_class.class_method_signature: SonarVersionExtractor.welcomePageVersion(URL url)
focal_class.full_signature: public String welcomePageVersion(URL url)
focal_class.identifier: welcomePageVersion
focal_class.modifiers: public
focal_class.parameters: (URL url)
focal_class.return: String
focal_class.signature: String welcomePageVersion(URL url)
focal_method.body: public String propertiesVersion(Properties properties) {
          for (Property property : properties.getProperties()) {
              if (property.isKey(SONAR_CORE_VERSION_KEY)) {
                  return property.getValue();
              }
          }
          return "unknown";
      }
focal_method.class_method_signature: SonarVersionExtractor.propertiesVersion(Properties properties)
focal_method.full_signature: public String propertiesVersion(Properties properties)
focal_method.identifier: propertiesVersion
focal_method.invocations: getProperties isKey getValue
focal_method.modifiers: public
focal_method.parameters: (Properties properties)
focal_method.return: String
focal_method.signature: String propertiesVersion(Properties properties)