builder: ReadmeWriterTest: templateProperties: make local variable

This commit is contained in:
Paul Campbell 2017-05-29 13:27:24 +01:00
parent 74690d8cdf
commit 701b64e2c6

View file

@ -25,8 +25,6 @@ public class ReadmeWriterTest {
private ReadmeWriter readmeWriter; private ReadmeWriter readmeWriter;
private TemplateProperties templateProperties;
private RulesProperties rulesProperties; private RulesProperties rulesProperties;
@Mock @Mock
@ -46,7 +44,7 @@ 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"));
templateProperties = new TemplateProperties(); final TemplateProperties templateProperties = new TemplateProperties();
templateProperties.setReadmeTemplate(template); templateProperties.setReadmeTemplate(template);
final Path fragments = folder.newFolder("fragments") final Path fragments = folder.newFolder("fragments")
.toPath(); .toPath();