From af2cfdeaaa05f44e620eda64002f21288b778be2 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Tue, 5 Mar 2024 14:25:00 +0100 Subject: [PATCH] Some tests. --- .../client/frontend/NpoApiClientsITest.java | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/frontend-api-client/src/test/java/nl/vpro/api/client/frontend/NpoApiClientsITest.java b/frontend-api-client/src/test/java/nl/vpro/api/client/frontend/NpoApiClientsITest.java index 19997fb3..6415efc7 100644 --- a/frontend-api-client/src/test/java/nl/vpro/api/client/frontend/NpoApiClientsITest.java +++ b/frontend-api-client/src/test/java/nl/vpro/api/client/frontend/NpoApiClientsITest.java @@ -4,6 +4,9 @@ */ package nl.vpro.api.client.frontend; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import lombok.extern.slf4j.Slf4j; import java.io.IOException; @@ -11,10 +14,6 @@ import java.time.*; import java.util.Locale; -import jakarta.ws.rs.*; -import jakarta.ws.rs.core.MediaType; -import jakarta.ws.rs.core.Response; - import org.apache.commons.io.IOUtils; import org.jboss.resteasy.client.jaxrs.ClientHttpEngine; import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; @@ -339,5 +338,25 @@ public void thesaurus() throws IOException { } + @Test + + + public void listForAncestor() { + ScheduleResult vpro = clients.getScheduleService().listForAncestor("some mid", null, Instant.now(), Instant.now().plus(Duration.ofDays(7)), null, null, 0, 100); + log.info("{}, ", vpro); + + + } + + @Test + public void list() { + ScheduleResult vpro = clients.getScheduleService().list(LocalDate.now(), null, null, null, null, 0, 100); + log.info("{}, ", vpro); + + + } + + + }