test_class.declarator: maven = new fr.norad.visuwall.providers.common.Maven()
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      fr.norad.visuwall.providers.common.Maven maven = new fr.norad.visuwall.providers.common.Maven();
test_class.type: fr.norad.visuwall.providers.common.Maven
test_class.var_name: maven
test_class.declarator: documentLoader
test_class.modifier: @Mock
test_class.original_string: @Mock
      fr.norad.visuwall.providers.common.DocumentLoader documentLoader;
test_class.type: fr.norad.visuwall.providers.common.DocumentLoader
test_class.var_name: documentLoader
test_class.file: component/core/src/test/java/fr/norad/visuwall/providers/common/MavenTest.java
test_class.identifier: MavenTest
test_case.body: @Test
      public void should_find_artifact_id() throws Exception {
          String pomUrl = fr.norad.visuwall.providers.common.ClasspathFiles.getAbsolutePathFile("pom-sample.xml");
          Document document = new fr.norad.visuwall.providers.common.DocumentLoader().loadFromUrl(pomUrl);
          when(documentLoader.loadFromUrl(anyString())).thenReturn(document);
  
          String artifactId = maven.findMavenIdFrom("test-project");
          assertEquals("fr.norad.visuwall:visuwall-hudsonclient", artifactId);
      }
test_case.class_method_signature: MavenTest.should_find_artifact_id()
test_case.full_signature: @Test public void should_find_artifact_id()
test_case.identifier: should_find_artifact_id
test_case.invocations: getAbsolutePathFile loadFromUrl thenReturn when loadFromUrl anyString findMavenIdFrom assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_find_artifact_id()
focal_class.declarator: documentLoader = new DocumentLoader()
focal_class.original_string: DocumentLoader documentLoader = new DocumentLoader();
focal_class.type: DocumentLoader
focal_class.var_name: documentLoader
focal_class.file: component/core/src/main/java/fr/norad/visuwall/providers/common/Maven.java
focal_class.identifier: Maven
focal_class.class_method_signature: Maven.findMavenIdFrom(String pomUrl)
focal_class.full_signature: public String findMavenIdFrom(String pomUrl)
focal_class.identifier: findMavenIdFrom
focal_class.modifiers: public
focal_class.parameters: (String pomUrl)
focal_class.return: String
focal_class.signature: String findMavenIdFrom(String pomUrl)
focal_class.class_method_signature: Maven.findMavenIdFromContent(String pomContent)
focal_class.full_signature: public String findMavenIdFromContent(String pomContent)
focal_class.identifier: findMavenIdFromContent
focal_class.modifiers: public
focal_class.parameters: (String pomContent)
focal_class.return: String
focal_class.signature: String findMavenIdFromContent(String pomContent)
focal_class.class_method_signature: Maven.findMavenId(Document doc)
focal_class.full_signature: private String findMavenId(Document doc)
focal_class.identifier: findMavenId
focal_class.modifiers: private
focal_class.parameters: (Document doc)
focal_class.return: String
focal_class.signature: String findMavenId(Document doc)
focal_class.class_method_signature: Maven.findValueInFirstLevel(Document doc, String tagName)
focal_class.full_signature: private String findValueInFirstLevel(Document doc, String tagName)
focal_class.identifier: findValueInFirstLevel
focal_class.modifiers: private
focal_class.parameters: (Document doc, String tagName)
focal_class.return: String
focal_class.signature: String findValueInFirstLevel(Document doc, String tagName)
focal_class.class_method_signature: Maven.isFirstLevel(String parentName)
focal_class.full_signature: private boolean isFirstLevel(String parentName)
focal_class.identifier: isFirstLevel
focal_class.modifiers: private
focal_class.parameters: (String parentName)
focal_class.return: boolean
focal_class.signature: boolean isFirstLevel(String parentName)
focal_method.body: public String findMavenIdFrom(String pomUrl) throws MavenIdNotFoundException {
          try {
              Document document = documentLoader.loadFromUrl(pomUrl);
              return findMavenId(document);
          } catch (DocumentNotLoadedException e) {
              throw new MavenIdNotFoundException("Can't find pom at " + pomUrl, e);
          }
      }
focal_method.class_method_signature: Maven.findMavenIdFrom(String pomUrl)
focal_method.full_signature: public String findMavenIdFrom(String pomUrl)
focal_method.identifier: findMavenIdFrom
focal_method.invocations: loadFromUrl findMavenId
focal_method.modifiers: public
focal_method.parameters: (String pomUrl)
focal_method.return: String
focal_method.signature: String findMavenIdFrom(String pomUrl)