Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
5b63b807
Commit
5b63b807
authored
Apr 07, 2019
by
dreis2211
Committed by
Brian Clozel
Apr 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate compound properties in appendices
parent
c4b01870
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
CompoundConfigurationTableEntry.java
...ot/configurationdocs/CompoundConfigurationTableEntry.java
+4
-5
CompoundConfigurationTableEntryTests.java
...nfigurationdocs/CompoundConfigurationTableEntryTests.java
+4
-3
No files found.
spring-boot-project/spring-boot-tools/spring-boot-configuration-docs/src/main/java/org/springframework/boot/configurationdocs/CompoundConfigurationTableEntry.java
View file @
5b63b807
...
@@ -46,11 +46,10 @@ class CompoundConfigurationTableEntry extends ConfigurationTableEntry {
...
@@ -46,11 +46,10 @@ class CompoundConfigurationTableEntry extends ConfigurationTableEntry {
@Override
@Override
public
void
write
(
AsciidocBuilder
builder
)
{
public
void
write
(
AsciidocBuilder
builder
)
{
builder
.
append
(
"|`+++"
);
builder
.
append
(
"|"
);
this
.
configurationKeys
.
forEach
(
builder:
:
appendln
);
this
.
configurationKeys
.
forEach
((
key
)
->
builder
.
appendln
(
"`+"
,
key
,
"+` +"
));
builder
.
appendln
(
"+++`"
);
builder
.
appendln
(
""
).
appendln
(
"|"
).
append
(
"|+++"
)
builder
.
appendln
(
"|"
);
.
append
(
this
.
description
).
appendln
(
"+++"
);
builder
.
appendln
(
"|+++"
,
this
.
description
,
"+++"
);
}
}
}
}
spring-boot-project/spring-boot-tools/spring-boot-configuration-docs/src/test/java/org/springframework/boot/configurationdocs/CompoundConfigurationTableEntryTests.java
View file @
5b63b807
...
@@ -47,9 +47,10 @@ public class CompoundConfigurationTableEntryTests {
...
@@ -47,9 +47,10 @@ public class CompoundConfigurationTableEntryTests {
entry
.
addConfigurationKeys
(
firstProp
,
secondProp
,
thirdProp
);
entry
.
addConfigurationKeys
(
firstProp
,
secondProp
,
thirdProp
);
AsciidocBuilder
builder
=
new
AsciidocBuilder
();
AsciidocBuilder
builder
=
new
AsciidocBuilder
();
entry
.
write
(
builder
);
entry
.
write
(
builder
);
assertThat
(
builder
.
toString
()).
isEqualTo
(
"|`+++spring.test.first"
+
NEWLINE
assertThat
(
builder
.
toString
()).
isEqualTo
(
+
"spring.test.second"
+
NEWLINE
+
"spring.test.third"
+
NEWLINE
+
"+++`"
"|`+spring.test.first+` +"
+
NEWLINE
+
"`+spring.test.second+` +"
+
NEWLINE
+
"|"
+
NEWLINE
+
"|+++This is a description.+++"
+
NEWLINE
);
+
NEWLINE
+
"`+spring.test.third+` +"
+
NEWLINE
+
NEWLINE
+
"|"
+
NEWLINE
+
"|+++This is a description.+++"
+
NEWLINE
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment