List of usage examples for org.apache.commons.configuration BaseConfiguration BaseConfiguration
BaseConfiguration
From source file:org.sonar.plugins.csharp.gallio.CoverageDecoratorTest.java
private CoverageDecorator createDecorator() { Configuration conf = new BaseConfiguration(); CoverageDecorator decorator = new CoverageDecorator(new CSharpConfiguration(conf), microsoftWindowsEnvironment); return decorator; }
From source file:org.sonar.plugins.csharp.gallio.GallioSensorTest.java
@Test public void testShouldExecuteOnProject() throws Exception { Configuration conf = new BaseConfiguration(); GallioSensor sensor = new GallioSensor(new CSharpConfiguration(conf), microsoftWindowsEnvironment); assertTrue(sensor.shouldExecuteOnProject(project)); }
From source file:org.sonar.plugins.csharp.gallio.GallioSensorTest.java
@Test public void testShouldNotExecuteOnProjectIfSkip() throws Exception { Configuration conf = new BaseConfiguration(); conf.setProperty(GallioConstants.MODE, GallioConstants.MODE_SKIP); GallioSensor sensor = new GallioSensor(new CSharpConfiguration(conf), microsoftWindowsEnvironment); assertFalse(sensor.shouldExecuteOnProject(project)); }
From source file:org.sonar.plugins.csharp.gallio.GallioSensorTest.java
@Test public void testShouldNotExecuteOnProjectIfReuseReports() throws Exception { Configuration conf = new BaseConfiguration(); conf.setProperty(GallioConstants.MODE, GallioConstants.MODE_REUSE_REPORT); GallioSensor sensor = new GallioSensor(new CSharpConfiguration(conf), microsoftWindowsEnvironment); assertFalse(sensor.shouldExecuteOnProject(project)); }
From source file:org.sonar.plugins.csharp.gallio.GallioSensorTest.java
@Test public void testShouldNotExecuteOnProjectTestsAlreadyExecuted() throws Exception { microsoftWindowsEnvironment.setTestExecutionDone(); Configuration conf = new BaseConfiguration(); GallioSensor sensor = new GallioSensor(new CSharpConfiguration(conf), microsoftWindowsEnvironment); assertFalse(sensor.shouldExecuteOnProject(project)); }
From source file:org.sonar.plugins.csharp.gallio.GallioSensorTest.java
@Test public void testShouldNotExecuteOnProjectIfNoTests() throws Exception { when(solution.getTestProjects()).thenReturn(new ArrayList<VisualStudioProject>()); Configuration conf = new BaseConfiguration(); GallioSensor sensor = new GallioSensor(new CSharpConfiguration(conf), microsoftWindowsEnvironment); assertFalse(sensor.shouldExecuteOnProject(project)); }
From source file:org.sonar.plugins.csharp.gallio.GallioSensorTest.java
@Test public void testShouldNotExecuteOnNotCSharpProject() throws Exception { // Non C# project will have an empty MicrosoftWindowsEnvironement with no solution microsoftWindowsEnvironment = new MicrosoftWindowsEnvironment(); when(project.getLanguageKey()).thenReturn("fortran"); Configuration conf = new BaseConfiguration(); GallioSensor sensor = new GallioSensor(new CSharpConfiguration(conf), microsoftWindowsEnvironment); assertFalse(sensor.shouldExecuteOnProject(project)); }
From source file:org.sonar.plugins.csharp.gallio.TestReportSensorTest.java
@Test public void testShouldExecuteOnProject() throws Exception { Configuration conf = new BaseConfiguration(); TestReportSensor sensor = new TestReportSensor(new CSharpConfiguration(conf), microsoftWindowsEnvironment); assertTrue(sensor.shouldExecuteOnProject(project)); }
From source file:org.sonar.plugins.csharp.gallio.TestReportSensorTest.java
@Test public void testShouldNotExecuteOnProjectIfSkip() throws Exception { Configuration conf = new BaseConfiguration(); conf.setProperty(GallioConstants.MODE, GallioConstants.MODE_SKIP); TestReportSensor sensor = new TestReportSensor(new CSharpConfiguration(conf), microsoftWindowsEnvironment); assertFalse(sensor.shouldExecuteOnProject(project)); }
From source file:org.sonar.plugins.csharp.gallio.TestReportSensorTest.java
@Test public void testShouldNotExecuteOnProjectIfNotTestProject() throws Exception { Configuration conf = new BaseConfiguration(); TestReportSensor sensor = new TestReportSensor(new CSharpConfiguration(conf), microsoftWindowsEnvironment); when(project.getName()).thenReturn("Project #1"); assertFalse(sensor.shouldExecuteOnProject(project)); }