KCR35: builder: ReadmeWriterTest: fragments: make local variable

This commit is contained in:
Paul Campbell 2017-05-29 13:25:50 +01:00
parent d754fdc0a3
commit 74690d8cdf

View file

@ -35,8 +35,6 @@ public class ReadmeWriterTest {
@Mock
private ReadmeIndexBuilder indexBuilder;
private Path fragments;
private Path readme;
@org.junit.Rule
@ -48,14 +46,14 @@ public class ReadmeWriterTest {
final Path template = folder.newFile("README-template.md")
.toPath();
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.setReadmeTemplate(template);
final Path fragments = folder.newFolder("fragments")
.toPath();
templateProperties.setReadmeFragments(fragments);
final OutputProperties outputProperties = new OutputProperties();
readme = folder.newFile("README.md")
.toPath();
outputProperties.setReadme(readme);
rulesProperties = new RulesProperties();
readmeWriter =