diff options
author | Vitaly Takmazov | 2022-12-21 02:11:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-21 02:11:47 +0300 |
commit | e588a7ded6fae3b033e1a59a4c24d1e1a6799747 (patch) | |
tree | 5cea16c195f2244a3e65440958cd5ef99ead5cc6 /src/test/java/com/juick/server/tests | |
parent | a740c0e1d4e9f89ef7decfe4225e53555121f93b (diff) |
sape: adopt records
Diffstat (limited to 'src/test/java/com/juick/server/tests')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 6 |
1 files changed, 3 insertions, 3 deletions
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("<!--1234567890123-->")); + assertThat(site.pages().size(), is(3)); + assertThat(site.pages().get(0).links().size(), is(2)); + assertThat(site.code(), is("<!--1234567890123-->")); SapePageLinks botLinks = new SapePageLinks(site, "ugnich", URI.create("http://localhost/"), "ugnich"); assertThat(botLinks.render(), is("<sape_noindex><!--1234567890123--></sape_noindex>")); SapePageLinks visitorLinks = new SapePageLinks(site, "ugnich", URI.create("http://localhost/"), null); |