builder: DefaultPackageScannerTest: make classPath local variable
This commit is contained in:
parent
1b318253d2
commit
f189fb3b84
1 changed files with 1 additions and 3 deletions
|
@ -16,13 +16,11 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
*/
|
*/
|
||||||
public class DefaultPackageScannerTest {
|
public class DefaultPackageScannerTest {
|
||||||
|
|
||||||
private ClassPath classPath;
|
|
||||||
|
|
||||||
private DefaultPackageScanner scanner;
|
private DefaultPackageScanner scanner;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
classPath = ClassPath.from(getClass().getClassLoader());
|
final ClassPath classPath = ClassPath.from(getClass().getClassLoader());
|
||||||
scanner = new DefaultPackageScanner(classPath);
|
scanner = new DefaultPackageScanner(classPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue