KCR35: builder: ReadmeWriterTest: fragments: make local variable
This commit is contained in:
parent
d754fdc0a3
commit
74690d8cdf
1 changed files with 4 additions and 6 deletions
|
@ -35,8 +35,6 @@ public class ReadmeWriterTest {
|
||||||
@Mock
|
@Mock
|
||||||
private ReadmeIndexBuilder indexBuilder;
|
private ReadmeIndexBuilder indexBuilder;
|
||||||
|
|
||||||
private Path fragments;
|
|
||||||
|
|
||||||
private Path readme;
|
private Path readme;
|
||||||
|
|
||||||
@org.junit.Rule
|
@org.junit.Rule
|
||||||
|
@ -48,14 +46,14 @@ public class ReadmeWriterTest {
|
||||||
final Path template = folder.newFile("README-template.md")
|
final Path template = folder.newFile("README-template.md")
|
||||||
.toPath();
|
.toPath();
|
||||||
Files.write(template, Arrays.asList("i:%s", "ce:%s", "se:%s", "cd:%s", "sd:%s"));
|
Files.write(template, Arrays.asList("i:%s", "ce:%s", "se:%s", "cd:%s", "sd:%s"));
|
||||||
fragments = folder.newFolder("fragments")
|
|
||||||
.toPath();
|
|
||||||
readme = folder.newFile("README.md")
|
|
||||||
.toPath();
|
|
||||||
templateProperties = new TemplateProperties();
|
templateProperties = new TemplateProperties();
|
||||||
templateProperties.setReadmeTemplate(template);
|
templateProperties.setReadmeTemplate(template);
|
||||||
|
final Path fragments = folder.newFolder("fragments")
|
||||||
|
.toPath();
|
||||||
templateProperties.setReadmeFragments(fragments);
|
templateProperties.setReadmeFragments(fragments);
|
||||||
final OutputProperties outputProperties = new OutputProperties();
|
final OutputProperties outputProperties = new OutputProperties();
|
||||||
|
readme = folder.newFile("README.md")
|
||||||
|
.toPath();
|
||||||
outputProperties.setReadme(readme);
|
outputProperties.setReadme(readme);
|
||||||
rulesProperties = new RulesProperties();
|
rulesProperties = new RulesProperties();
|
||||||
readmeWriter =
|
readmeWriter =
|
||||||
|
|
Loading…
Reference in a new issue