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