From c80f11dbbf34c42e45cd141a4b3d3eae535ac75b Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 5 Feb 2014 16:57:35 +0100 Subject: [PATCH] Fix quality flaws in ResourceKeyMigrationTest --- .../sonar/batch/index/ResourceKeyMigrationTest.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/ResourceKeyMigrationTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/ResourceKeyMigrationTest.java index a03d50f5631..8abbe8d55d2 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/index/ResourceKeyMigrationTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/index/ResourceKeyMigrationTest.java @@ -19,8 +19,6 @@ */ package org.sonar.batch.index; -import org.sonar.api.scan.filesystem.InputFile; - import com.google.common.base.Charsets; import org.apache.commons.configuration.PropertiesConfiguration; import org.junit.Before; @@ -30,6 +28,7 @@ import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; import org.slf4j.Logger; import org.sonar.api.resources.Project; +import org.sonar.api.scan.filesystem.InputFile; import org.sonar.api.scan.filesystem.internal.DefaultInputFile; import org.sonar.api.scan.filesystem.internal.InputFileBuilder; import org.sonar.jpa.test.AbstractDbUnitTestCase; @@ -51,11 +50,9 @@ public class ResourceKeyMigrationTest extends AbstractDbUnitTestCase { public TemporaryFolder temp = new TemporaryFolder(); Project multiModuleProject, phpModule, javaModule; - SnapshotCache snapshotCache = mock(SnapshotCache.class); - ResourceCache resourceCache = mock(ResourceCache.class); - private Iterable javaInputFiles; - private Iterable phpInputFiles; - private File baseDir; + Iterable javaInputFiles; + Iterable phpInputFiles; + File baseDir; @Before public void before() throws ParseException, IOException { -- 2.39.5