|
|
@ -41,8 +41,8 @@ class SingleConfigurationTableEntryTests {
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
entry.write(builder);
|
|
|
|
entry.write(builder);
|
|
|
|
assertThat(builder.toString()).isEqualTo("|`+spring.test.prop+`" + NEWLINE + "|`+something+`" + NEWLINE
|
|
|
|
assertThat(builder.toString()).isEqualTo("¦`+spring.test.prop+`" + NEWLINE + "¦`+something+`" + NEWLINE
|
|
|
|
+ "|+++This is a description.+++" + NEWLINE);
|
|
|
|
+ "¦+++This is a description.+++" + NEWLINE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -55,7 +55,7 @@ class SingleConfigurationTableEntryTests {
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
entry.write(builder);
|
|
|
|
entry.write(builder);
|
|
|
|
assertThat(builder.toString()).isEqualTo(
|
|
|
|
assertThat(builder.toString()).isEqualTo(
|
|
|
|
"|`+spring.test.prop+`" + NEWLINE + "|" + NEWLINE + "|+++This is a description.+++" + NEWLINE);
|
|
|
|
"¦`+spring.test.prop+`" + NEWLINE + "¦" + NEWLINE + "¦+++This is a description.+++" + NEWLINE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -68,8 +68,8 @@ class SingleConfigurationTableEntryTests {
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
entry.write(builder);
|
|
|
|
entry.write(builder);
|
|
|
|
assertThat(builder.toString()).isEqualTo("|`+spring.test.prop+`" + NEWLINE + "|`+first{vbar}" + NEWLINE
|
|
|
|
assertThat(builder.toString()).isEqualTo("¦`+spring.test.prop+`" + NEWLINE + "¦`+first|second+`" + NEWLINE
|
|
|
|
+ "second+`" + NEWLINE + "|+++This is a description.+++" + NEWLINE);
|
|
|
|
+ "¦+++This is a description.+++" + NEWLINE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -82,8 +82,8 @@ class SingleConfigurationTableEntryTests {
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
entry.write(builder);
|
|
|
|
entry.write(builder);
|
|
|
|
assertThat(builder.toString()).isEqualTo("|`+spring.test.prop+`" + NEWLINE + "|`+first\\\\second+`" + NEWLINE
|
|
|
|
assertThat(builder.toString()).isEqualTo("¦`+spring.test.prop+`" + NEWLINE + "¦`+first\\\\second+`" + NEWLINE
|
|
|
|
+ "|+++This is a description.+++" + NEWLINE);
|
|
|
|
+ "¦+++This is a description.+++" + NEWLINE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -95,8 +95,8 @@ class SingleConfigurationTableEntryTests {
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
entry.write(builder);
|
|
|
|
entry.write(builder);
|
|
|
|
assertThat(builder.toString()).isEqualTo("|`+spring.test.prop+`" + NEWLINE + "|" + NEWLINE
|
|
|
|
assertThat(builder.toString()).isEqualTo("¦`+spring.test.prop+`" + NEWLINE + "¦" + NEWLINE
|
|
|
|
+ "|+++This is a description with a \\| pipe.+++" + NEWLINE);
|
|
|
|
+ "¦+++This is a description with a | pipe.+++" + NEWLINE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -109,7 +109,7 @@ class SingleConfigurationTableEntryTests {
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
entry.write(builder);
|
|
|
|
entry.write(builder);
|
|
|
|
assertThat(builder.toString()).isEqualTo(
|
|
|
|
assertThat(builder.toString()).isEqualTo(
|
|
|
|
"|`+spring.test.prop.*+`" + NEWLINE + "|" + NEWLINE + "|+++This is a description.+++" + NEWLINE);
|
|
|
|
"¦`+spring.test.prop.*+`" + NEWLINE + "¦" + NEWLINE + "¦+++This is a description.+++" + NEWLINE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -123,8 +123,8 @@ class SingleConfigurationTableEntryTests {
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry(property);
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
AsciidocBuilder builder = new AsciidocBuilder();
|
|
|
|
entry.write(builder);
|
|
|
|
entry.write(builder);
|
|
|
|
assertThat(builder.toString()).isEqualTo("|`+spring.test.prop+`" + NEWLINE + "|`+first," + NEWLINE + "second,"
|
|
|
|
assertThat(builder.toString()).isEqualTo("¦`+spring.test.prop+`" + NEWLINE + "¦`+first," + NEWLINE + "second,"
|
|
|
|
+ NEWLINE + "third+`" + NEWLINE + "|+++This is a description.+++" + NEWLINE);
|
|
|
|
+ NEWLINE + "third+`" + NEWLINE + "¦+++This is a description.+++" + NEWLINE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|