Separate compound properties in appendices

pull/16699/head
dreis2211 6 years ago committed by Brian Clozel
parent c4b018705d
commit 5b63b807ad

@ -46,11 +46,10 @@ class CompoundConfigurationTableEntry extends ConfigurationTableEntry {
@Override
public void write(AsciidocBuilder builder) {
builder.append("|`+++");
this.configurationKeys.forEach(builder::appendln);
builder.appendln("+++`");
builder.appendln("|");
builder.appendln("|+++", this.description, "+++");
builder.append("|");
this.configurationKeys.forEach((key) -> builder.appendln("`+", key, "+` +"));
builder.appendln("").appendln("|").append("|+++")
.append(this.description).appendln("+++");
}
}

@ -47,9 +47,10 @@ public class CompoundConfigurationTableEntryTests {
entry.addConfigurationKeys(firstProp, secondProp, thirdProp);
AsciidocBuilder builder = new AsciidocBuilder();
entry.write(builder);
assertThat(builder.toString()).isEqualTo("|`+++spring.test.first" + NEWLINE
+ "spring.test.second" + NEWLINE + "spring.test.third" + NEWLINE + "+++`"
+ NEWLINE + "|" + NEWLINE + "|+++This is a description.+++" + NEWLINE);
assertThat(builder.toString()).isEqualTo(
"|`+spring.test.first+` +" + NEWLINE + "`+spring.test.second+` +"
+ NEWLINE + "`+spring.test.third+` +" + NEWLINE + NEWLINE + "|"
+ NEWLINE + "|+++This is a description.+++" + NEWLINE);
}
}

Loading…
Cancel
Save