test_class.declarator: documentLoader = new DocumentLoader()
test_class.original_string: DocumentLoader documentLoader = new DocumentLoader();
test_class.type: DocumentLoader
test_class.var_name: documentLoader
test_class.file: component/core/src/test/java/fr/norad/visuwall/providers/common/DocumentLoaderTest.java
test_class.identifier: DocumentLoaderTest
test_case.body: @Test(expected = DocumentNotLoadedException.class)
      public void should_fail_with_other_type_than_xml() throws Exception {
          String fileUrl = ClasspathFiles.getAbsolutePathFile("simple-text-file.txt");
          documentLoader.loadFromUrl(fileUrl);
      }
test_case.class_method_signature: DocumentLoaderTest.should_fail_with_other_type_than_xml()
test_case.full_signature: @Test(expected = DocumentNotLoadedException.class) public void should_fail_with_other_type_than_xml()
test_case.identifier: should_fail_with_other_type_than_xml
test_case.invocations: getAbsolutePathFile loadFromUrl
test_case.modifiers: @Test(expected = DocumentNotLoadedException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_fail_with_other_type_than_xml()
focal_class.file: component/core/src/main/java/fr/norad/visuwall/providers/common/DocumentLoader.java
focal_class.identifier: DocumentLoader
focal_class.class_method_signature: DocumentLoader.loadFromUrl(String strUrl)
focal_class.full_signature: public Document loadFromUrl(String strUrl)
focal_class.identifier: loadFromUrl
focal_class.modifiers: public
focal_class.parameters: (String strUrl)
focal_class.return: Document
focal_class.signature: Document loadFromUrl(String strUrl)
focal_class.class_method_signature: DocumentLoader.loadFromContent(String pomContent)
focal_class.full_signature: public Document loadFromContent(String pomContent)
focal_class.identifier: loadFromContent
focal_class.modifiers: public
focal_class.parameters: (String pomContent)
focal_class.return: Document
focal_class.signature: Document loadFromContent(String pomContent)
focal_method.body: public Document loadFromUrl(String strUrl) throws fr.norad.visuwall.providers.common.DocumentNotLoadedException {
          Preconditions.checkNotNull(strUrl, "strUrl is mandatory");
          InputStream stream = null;
          try {
              URL url = new URL(strUrl);
              stream = url.openStream();
              DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
              DocumentBuilder documentBuilder = builderFactory.newDocumentBuilder();
              return documentBuilder.parse(stream);
          } catch (MalformedURLException e) {
              throw new fr.norad.visuwall.providers.common.DocumentNotLoadedException("Can't load document from url: " + strUrl, e);
          } catch (IOException e) {
              throw new fr.norad.visuwall.providers.common.DocumentNotLoadedException("Can't load document from url: " + strUrl, e);
          } catch (SAXException e) {
              throw new fr.norad.visuwall.providers.common.DocumentNotLoadedException("Can't load document from url: " + strUrl, e);
          } catch (ParserConfigurationException e) {
              throw new fr.norad.visuwall.providers.common.DocumentNotLoadedException("Can't load document from url: " + strUrl, e);
          } finally {
              closeQuietly(stream);
          }
      }
focal_method.class_method_signature: DocumentLoader.loadFromUrl(String strUrl)
focal_method.full_signature: public Document loadFromUrl(String strUrl)
focal_method.identifier: loadFromUrl
focal_method.invocations: checkNotNull openStream newInstance newDocumentBuilder parse closeQuietly
focal_method.modifiers: public
focal_method.parameters: (String strUrl)
focal_method.return: Document
focal_method.signature: Document loadFromUrl(String strUrl)