Added links to wiki for EncodeHtml, EncodeJs, EncodeJson and EncodeXml
This commit is contained in:
parent
0f62f9cb5b
commit
cea371ed31
7 changed files with 16 additions and 36 deletions
|
@ -54,8 +54,8 @@ class TestEncode {
|
|||
@Test
|
||||
void testEncodeJson() {
|
||||
var t = TemplateFactory.JSON.get("encodeJson");
|
||||
t.setAttribute(TestCase.FOO, "fde\fde\rjk\tos\\u218Foi");
|
||||
assertThat(t.getContent()).isEqualTo("{\n \"foo\": \"fde\\fde\\rjk\\tos\\\\u218Foi\"\n}");
|
||||
t.setAttribute(TestCase.FOO, "This is a \"•test\"");
|
||||
assertThat(t.getContent()).isEqualTo("{\n \"foo\": \"This is a \\\"\\u2022test\\\"\"\n}");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue