diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-11-09 10:31:59 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-11-09 10:31:59 +0100 |
commit | 4a4d7fc2642ee02c5ff396168ea23befb55bfe35 (patch) | |
tree | 61c7f0b0093b72959432141d428e6acb7d53543a /plugins | |
parent | 1697b85fb00b7a886ace0270691312d2b4ff39a6 (diff) | |
download | sonarqube-4a4d7fc2642ee02c5ff396168ea23befb55bfe35.tar.gz sonarqube-4a4d7fc2642ee02c5ff396168ea23befb55bfe35.zip |
SONAR-3939 complete unit tests
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/index/IndexFactoryTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/index/IndexFactoryTest.java b/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/index/IndexFactoryTest.java index e59da4f6a4b..56b1a524bb5 100644 --- a/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/index/IndexFactoryTest.java +++ b/plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/index/IndexFactoryTest.java @@ -51,6 +51,7 @@ public class IndexFactoryTest { public void crossProjectEnabled() { settings.setProperty(CoreProperties.CPD_CROSS_RPOJECT, "true"); assertThat(factory.verifyCrossProject(project, logger)).isTrue(); + verify(logger).info("Cross-project analysis enabled"); } @Test @@ -58,6 +59,7 @@ public class IndexFactoryTest { settings.setProperty(CoreProperties.CPD_CROSS_RPOJECT, "true"); project.setBranch("branch"); assertThat(factory.verifyCrossProject(project, logger)).isFalse(); + verify(logger).info("Cross-project analysis disabled. Not supported on project branches."); } @Test @@ -72,6 +74,7 @@ public class IndexFactoryTest { public void crossProjectDisabled() { settings.setProperty(CoreProperties.CPD_CROSS_RPOJECT, "false"); assertThat(factory.verifyCrossProject(project, logger)).isFalse(); + verify(logger).info("Cross-project analysis disabled"); } } |