aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-21 02:11:47 +0300
committerGravatar Vitaly Takmazov2022-12-21 02:11:47 +0300
commite588a7ded6fae3b033e1a59a4c24d1e1a6799747 (patch)
tree5cea16c195f2244a3e65440958cd5ef99ead5cc6 /src/test/java/com/juick/server
parenta740c0e1d4e9f89ef7decfe4225e53555121f93b (diff)
sape: adopt records
Diffstat (limited to 'src/test/java/com/juick/server')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java6
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);