src/test/java/nl/bioinf/minorapplicationdesign/ontpillen/model/web_scraping/FarmacoWebScraperTest.java
/**
     * Method checks if FarmacoWebScraper adds side effects content to each drug substance
     * @throws IOException
     */
Method checks if FarmacoWebScraper adds side effects content to each drug substance
@throws IOException
Method checks if FarmacoWebScraper adds side effects content to each drug substance @throws IOException
@Test
    void parseHtml_sideEffectsContentContainsItems() throws IOException {
        farmacoWebScraper.parseHtml();
        List<DrugSubstance> drugSubstances = drugDao.getDrugSubstances();
        for (DrugSubstance drugSubstance: drugSubstances) {
            for (Content content : drugSubstance.getSideEffects().getSideEffectsPractitioner()) {
                assertNotNull(content);
                System.out.println(content);
            }
        }
    }
@ Test void parseHtml_sideEffectsContentContainsItems ( ) throws IOException { farmacoWebScraper . parseHtml ( ) ; List < DrugSubstance > drugSubstances = drugDao . getDrugSubstances ( ) ; for ( DrugSubstance drugSubstance : drugSubstances ) { for ( Content content : drugSubstance . getSideEffects ( ) . getSideEffectsPractitioner ( ) ) { assertNotNull ( content ) ; System . out . println ( content ) ; } } }
Method checks if FarmacoWebScraper adds side effects content to each drug substance
 @throws IOException
Method checks if FarmacoWebScraper adds side effects content to each drug substance @throws IOException