aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-findbugs-plugin
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-10-19 20:32:57 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-10-19 20:32:57 +0400
commit6c0ae292c9d12eaa61b1507831eb9905ea2c6c40 (patch)
treee7c106c91f545b6b36fe1f3c54d367f490051895 /plugins/sonar-findbugs-plugin
parent84d96bf6ada999fe22db0551b3e9d56f6605c9bd (diff)
downloadsonarqube-6c0ae292c9d12eaa61b1507831eb9905ea2c6c40.tar.gz
sonarqube-6c0ae292c9d12eaa61b1507831eb9905ea2c6c40.zip
SONAR-2594 Fix tests
Diffstat (limited to 'plugins/sonar-findbugs-plugin')
-rw-r--r--plugins/sonar-findbugs-plugin/src/test/java/org/sonar/plugins/findbugs/FindbugsExecutorTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/sonar-findbugs-plugin/src/test/java/org/sonar/plugins/findbugs/FindbugsExecutorTest.java b/plugins/sonar-findbugs-plugin/src/test/java/org/sonar/plugins/findbugs/FindbugsExecutorTest.java
index 812f5180b8e..5930f711dea 100644
--- a/plugins/sonar-findbugs-plugin/src/test/java/org/sonar/plugins/findbugs/FindbugsExecutorTest.java
+++ b/plugins/sonar-findbugs-plugin/src/test/java/org/sonar/plugins/findbugs/FindbugsExecutorTest.java
@@ -26,7 +26,9 @@ import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.io.File;
+import java.util.Locale;
+import org.apache.commons.configuration.BaseConfiguration;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import org.sonar.api.CoreProperties;
@@ -64,6 +66,7 @@ public class FindbugsExecutorTest {
Project project = mock(Project.class);
ProjectFileSystem fs = mock(ProjectFileSystem.class);
when(project.getFileSystem()).thenReturn(fs);
+ when(project.getConfiguration()).thenReturn(new BaseConfiguration());
FindbugsConfiguration conf = new FindbugsConfiguration(project, null, null, null);
new FindbugsExecutor(conf).execute();
@@ -80,6 +83,7 @@ public class FindbugsExecutorTest {
when(conf.saveIncludeConfigXml()).thenReturn(new File("test-resources/findbugs-include.xml"));
when(conf.getEffort()).thenReturn("default");
when(conf.getTimeout()).thenReturn(CoreProperties.FINDBUGS_TIMEOUT_DEFAULT_VALUE);
+ when(conf.getLocale()).thenReturn(Locale.ENGLISH);
return conf;
}