From f5912d9d066b02bd3e9cf7c33c985650818499fb Mon Sep 17 00:00:00 2001 From: AdrianBalunan Date: Sun, 15 Mar 2026 20:18:57 +0100 Subject: [PATCH] Fix: ApiScraper Test works --- .../systemutvikling/team6/scraper/APICharityScraperTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/scraper/APICharityScraperTest.java b/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/scraper/APICharityScraperTest.java index c224ce3..36eb452 100644 --- a/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/scraper/APICharityScraperTest.java +++ b/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/scraper/APICharityScraperTest.java @@ -71,13 +71,13 @@ void parsedJSONShouldHaveCorrectValues() throws URISyntaxException { "is_pre_approved\":false}]"; CharityRegistry list = con.parseJSON(JSONData); - Charity d = list.getAllCharities().getFirst(); + Charity d = list.getAllCharities().get(0); assertEquals("938419264", d.getOrg_number(), "Org_number parameter " + "should be correct."); assertEquals("Misjonsalliansen", d.getName(), "Name parameter should be correct."); assertEquals("approved", d.getStatus(), "Status parameter should be correct."); - assertEquals("Les mer https://www.innsamlingskontrollen.no/organisasjoner/misjonsalliansen/", d.getDescription(), + assertEquals("Les mer her: https://www.innsamlingskontrollen.no/organisasjoner/misjonsalliansen/", d.getDescription(), "Url parameter should be correct."); assertFalse(d.getPreApproved(), "Is_pre_approved parameter should be correct."); }