From e588a7ded6fae3b033e1a59a4c24d1e1a6799747 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 21 Dec 2022 02:11:47 +0300 Subject: sape: adopt records --- src/test/java/com/juick/server/tests/ServerTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test') diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 2ea94d2f..76146dd9 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -2710,9 +2710,9 @@ public class ServerTests { public void linksTest() throws IOException, ParserConfigurationException, SAXException { Site site = Site.fromXMLData(IOUtils.toString(sapeOutput.getInputStream(), StandardCharsets.UTF_8)); - assertThat(site.getPages().size(), is(3)); - assertThat(site.getPages().get(0).getLinks().size(), is(2)); - assertThat(site.getCode(), is("")); + assertThat(site.pages().size(), is(3)); + assertThat(site.pages().get(0).links().size(), is(2)); + assertThat(site.code(), is("")); SapePageLinks botLinks = new SapePageLinks(site, "ugnich", URI.create("http://localhost/"), "ugnich"); assertThat(botLinks.render(), is("")); SapePageLinks visitorLinks = new SapePageLinks(site, "ugnich", URI.create("http://localhost/"), null); -- cgit v1.2.3