test_class.file: app/src/test/java/com/scraper/SiteToolsTest.java
test_class.identifier: SiteToolsTest
test_case.body: @Test
      public void getsAllAnimeList(){
          String document=null;
          try {
              document=getDocument("allanime.html");
          } catch (IOException e) {
              fail("Test HTML file not found.");
          }
          assertThat((SiteTools.getAnimeList(document).get(0).get(0).equals("009-1")),is(true));
          assertThat((SiteTools.getAnimeList(document).get(0).get(1).equals("http://www.anime1.com/watch/009-1")),is(true));
      }
test_case.class_method_signature: SiteToolsTest.getsAllAnimeList()
test_case.full_signature: @Test public void getsAllAnimeList()
test_case.identifier: getsAllAnimeList
test_case.invocations: getDocument fail assertThat equals get get getAnimeList is assertThat equals get get getAnimeList is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getsAllAnimeList()
focal_class.file: app/src/main/java/com/scraper/SiteTools.java
focal_class.identifier: SiteTools
focal_class.class_method_signature: SiteTools.getAnimeList(String response)
focal_class.full_signature: public static List<List<String>> getAnimeList(String response)
focal_class.identifier: getAnimeList
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAnimeList(String response)
focal_class.class_method_signature: SiteTools.getOngoingAnimeList(String string_document)
focal_class.full_signature: public static List<List<String>> getOngoingAnimeList(String string_document)
focal_class.identifier: getOngoingAnimeList
focal_class.modifiers: public static
focal_class.parameters: (String string_document)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getOngoingAnimeList(String string_document)
focal_class.class_method_signature: SiteTools.getGenreList(String response)
focal_class.full_signature: public static List<List<String>> getGenreList(String response)
focal_class.identifier: getGenreList
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getGenreList(String response)
focal_class.class_method_signature: SiteTools.getAnimeByGenreElement(String url, String genre, int page)
focal_class.full_signature: public static Element getAnimeByGenreElement(String url, String genre, int page)
focal_class.identifier: getAnimeByGenreElement
focal_class.modifiers: public static
focal_class.parameters: (String url, String genre, int page)
focal_class.return: Element
focal_class.signature: Element getAnimeByGenreElement(String url, String genre, int page)
focal_class.class_method_signature: SiteTools.getAnimeByGenre(String url)
focal_class.full_signature: public static List<List<String>> getAnimeByGenre(String url)
focal_class.identifier: getAnimeByGenre
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAnimeByGenre(String url)
focal_class.class_method_signature: SiteTools.getAnimeByGenreElementParse(Element div)
focal_class.full_signature: public static List<List<String>> getAnimeByGenreElementParse(Element div)
focal_class.identifier: getAnimeByGenreElementParse
focal_class.modifiers: public static
focal_class.parameters: (Element div)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAnimeByGenreElementParse(Element div)
focal_class.class_method_signature: SiteTools.getAlternateEpisodeLinks(String response)
focal_class.full_signature: public static List<List<String>> getAlternateEpisodeLinks(String response)
focal_class.identifier: getAlternateEpisodeLinks
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: List<List<String>>
focal_class.signature: List<List<String>> getAlternateEpisodeLinks(String response)
focal_class.class_method_signature: SiteTools.getVideoURL(String response)
focal_class.full_signature: public static String getVideoURL(String response)
focal_class.identifier: getVideoURL
focal_class.modifiers: public static
focal_class.parameters: (String response)
focal_class.return: String
focal_class.signature: String getVideoURL(String response)
focal_method.body: public static List<List<String>> getAnimeList(String response) {
          Document document = Jsoup.parse(response);
          List<List<String>> animeList = new ArrayList<>();
          Elements links = document.select("ul.anime-list>li>a");
          for (Element link : links) {
              animeList.add(new ArrayList<>(Arrays.asList(link.text(), link.attr("href"))));
          }
          return animeList;
  
      }
focal_method.class_method_signature: SiteTools.getAnimeList(String response)
focal_method.full_signature: public static List<List<String>> getAnimeList(String response)
focal_method.identifier: getAnimeList
focal_method.invocations: parse select add asList text attr
focal_method.modifiers: public static
focal_method.parameters: (String response)
focal_method.return: List<List<String>>
focal_method.signature: List<List<String>> getAnimeList(String response)