aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-08 16:45:34 +0300
committerGravatar Vitaly Takmazov2020-10-08 16:45:34 +0300
commit7229f06e0bc5c61dc17cb539c7b54273b66b16b6 (patch)
tree5b282a284e3db575a0f9359b3e7313454ffb06d5 /src/test/java/com
parent94380f2301be01b395a2736e5c4539f073c9788d (diff)
Sape: refactoring
Diffstat (limited to 'src/test/java/com')
-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 00259f8f..ee726dbf 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2429,11 +2429,11 @@ public class ServerTests {
assertThat(site.getPages().size(), is(3));
assertThat(site.getPages().get(0).getLinks().size(), is(2));
assertThat(site.getCode(), is("<!--1234567890123-->"));
- SapePageLinks botLinks = new SapePageLinks(site, "ugnich", URI.create("http://localhost/"), "ugnich", false);
+ 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, false);
+ SapePageLinks visitorLinks = new SapePageLinks(site, "ugnich", URI.create("http://localhost/"), null);
assertThat(visitorLinks.render(), is(" Тест <a href=\"https://example.com\" target=\"_blank\">ссылки</a> - passed. . Тест <a href=\"https://example.com\" target=\"_blank\">ссылки 2</a> - passed. "));
- SapePageLinks emptyLinks = new SapePageLinks(site, "ugnich", URI.create("http://localhost/yo"), null, false);
+ SapePageLinks emptyLinks = new SapePageLinks(site, "ugnich", URI.create("http://localhost/yo"), null);
assertThat(emptyLinks.render(), is(emptyString()));
}
}