KXR36: plugin: DefaultCheckstyleExecutorTest: artifactFile: make local variable
This commit is contained in:
parent
701b64e2c6
commit
4cca4286a1
1 changed files with 1 additions and 3 deletions
|
@ -72,8 +72,6 @@ public class DefaultCheckstyleExecutorTest {
|
|||
@Mock
|
||||
private Artifact artifact;
|
||||
|
||||
private File artifactFile;
|
||||
|
||||
@Mock
|
||||
private MavenXpp3Reader mavenXpp3Reader;
|
||||
|
||||
|
@ -122,8 +120,8 @@ public class DefaultCheckstyleExecutorTest {
|
|||
.level(level)
|
||||
.build();
|
||||
|
||||
artifactFile = folder.newFile("pom.xml");
|
||||
given(artifactRepository.find(any())).willReturn(artifact);
|
||||
final File artifactFile = folder.newFile("pom.xml");
|
||||
given(artifact.getFile()).willReturn(artifactFile);
|
||||
given(mavenXpp3Reader.read(any(FileReader.class))).willReturn(pomModel);
|
||||
final Properties properties = new Properties();
|
||||
|
|
Loading…
Reference in a new issue