Merge pull request #42 from kemitix/kcr-30-builder-checkstylewriter-checkstyletemplate-localvariable
KCR30: CheckstyleWriterTest: checkstyleTemplate: make field local variable
This commit is contained in:
commit
aa8c5f2c84
1 changed files with 2 additions and 4 deletions
|
@ -47,8 +47,6 @@ public class CheckstyleWriterTest {
|
||||||
|
|
||||||
private Path outputDirectory;
|
private Path outputDirectory;
|
||||||
|
|
||||||
private Path checkstyleTemplate;
|
|
||||||
|
|
||||||
@org.junit.Rule
|
@org.junit.Rule
|
||||||
public TemporaryFolder folder = new TemporaryFolder();
|
public TemporaryFolder folder = new TemporaryFolder();
|
||||||
|
|
||||||
|
@ -69,8 +67,8 @@ public class CheckstyleWriterTest {
|
||||||
.toPath();
|
.toPath();
|
||||||
outputProperties.setDirectory(outputDirectory);
|
outputProperties.setDirectory(outputDirectory);
|
||||||
templateProperties = new TemplateProperties();
|
templateProperties = new TemplateProperties();
|
||||||
checkstyleTemplate = folder.newFile("checkstyle-template.xml")
|
val checkstyleTemplate = folder.newFile("checkstyle-template.xml")
|
||||||
.toPath();
|
.toPath();
|
||||||
Files.write(
|
Files.write(
|
||||||
checkstyleTemplate, TEMPLATE.getBytes(StandardCharsets.UTF_8), StandardOpenOption.TRUNCATE_EXISTING);
|
checkstyleTemplate, TEMPLATE.getBytes(StandardCharsets.UTF_8), StandardOpenOption.TRUNCATE_EXISTING);
|
||||||
templateProperties.setCheckstyleXml(checkstyleTemplate);
|
templateProperties.setCheckstyleXml(checkstyleTemplate);
|
||||||
|
|
Loading…
Reference in a new issue