diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-18 15:40:58 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-18 15:43:09 +0100 |
commit | 8133a2c491d5d59c35af8a7d55dba506ade3c8fa (patch) | |
tree | 690cf0ee617614579848576c154b19620afaf4db /sonar-batch/src/test/java/org/sonar | |
parent | 5ab69aedad1e97e6339bb313e1e50bbfb6f872c7 (diff) | |
download | sonarqube-8133a2c491d5d59c35af8a7d55dba506ade3c8fa.tar.gz sonarqube-8133a2c491d5d59c35af8a7d55dba506ade3c8fa.zip |
SONAR-4069 Refactoring of Task extension
* @RequiresProject is no more in API
* Simplify TaskModule
Diffstat (limited to 'sonar-batch/src/test/java/org/sonar')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/bootstrap/TaskModuleTest.java (renamed from sonar-batch/src/test/java/org/sonar/batch/bootstrap/AbstractTaskModuleTest.java) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/AbstractTaskModuleTest.java b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/TaskModuleTest.java index 4963c9cd0c8..e5b7f49b035 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/AbstractTaskModuleTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/TaskModuleTest.java @@ -28,7 +28,7 @@ import static org.mockito.Matchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; -public class AbstractTaskModuleTest { +public class TaskModuleTest { @Test public void should_register_task_extensions_when_project_present() { final ExtensionInstaller extensionInstaller = mock(ExtensionInstaller.class); @@ -40,7 +40,7 @@ public class AbstractTaskModuleTest { } }; bootstrapModule.init(); - ProjectTaskModule module = new ProjectTaskModule(TaskDefinition.create()); + TaskModule module = new TaskModule(TaskDefinition.create(), true); bootstrapModule.installChild(module); verify(extensionInstaller).installTaskExtensions(any(ComponentContainer.class), eq(true)); @@ -57,7 +57,7 @@ public class AbstractTaskModuleTest { } }; bootstrapModule.init(); - ProjectLessTaskModule module = new ProjectLessTaskModule(TaskDefinition.create()); + TaskModule module = new TaskModule(TaskDefinition.create(), false); bootstrapModule.installChild(module); verify(extensionInstaller).installTaskExtensions(any(ComponentContainer.class), eq(false)); |