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
|
@Mock
|
||||||
private Artifact artifact;
|
private Artifact artifact;
|
||||||
|
|
||||||
private File artifactFile;
|
|
||||||
|
|
||||||
@Mock
|
@Mock
|
||||||
private MavenXpp3Reader mavenXpp3Reader;
|
private MavenXpp3Reader mavenXpp3Reader;
|
||||||
|
|
||||||
|
@ -122,8 +120,8 @@ public class DefaultCheckstyleExecutorTest {
|
||||||
.level(level)
|
.level(level)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
artifactFile = folder.newFile("pom.xml");
|
|
||||||
given(artifactRepository.find(any())).willReturn(artifact);
|
given(artifactRepository.find(any())).willReturn(artifact);
|
||||||
|
final File artifactFile = folder.newFile("pom.xml");
|
||||||
given(artifact.getFile()).willReturn(artifactFile);
|
given(artifact.getFile()).willReturn(artifactFile);
|
||||||
given(mavenXpp3Reader.read(any(FileReader.class))).willReturn(pomModel);
|
given(mavenXpp3Reader.read(any(FileReader.class))).willReturn(pomModel);
|
||||||
final Properties properties = new Properties();
|
final Properties properties = new Properties();
|
||||||
|
|
Loading…
Reference in a new issue