Minimize and centralize assumptions about build output
Closes gh-15471
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -46,9 +46,9 @@ public class FileUtilsTests {
|
||||
private File originDirectory;
|
||||
|
||||
@Before
|
||||
public void init() {
|
||||
this.outputDirectory = new File("target/test/remove");
|
||||
this.originDirectory = new File("target/test/keep");
|
||||
public void init() throws IOException {
|
||||
this.outputDirectory = this.temporaryFolder.newFolder("remove");
|
||||
this.originDirectory = this.temporaryFolder.newFolder("keep");
|
||||
FileSystemUtils.deleteRecursively(this.outputDirectory);
|
||||
FileSystemUtils.deleteRecursively(this.originDirectory);
|
||||
this.outputDirectory.mkdirs();
|
||||
|
||||
Reference in New Issue
Block a user