diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-08 14:38:32 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-08 14:38:32 +0000 |
commit | 7ca495d67492c6b3dbb653102e345f8fc43f09ae (patch) | |
tree | 2dd4d54faaad9c4c74f172fba50bdfb5f3b734c8 /sonar-server/src/test | |
parent | 9185222d18826c0648a8bf3cf8e2e491537b472e (diff) | |
download | sonarqube-7ca495d67492c6b3dbb653102e345f8fc43f09ae.tar.gz sonarqube-7ca495d67492c6b3dbb653102e345f8fc43f09ae.zip |
API: improve the pattern to define quality profiles. The extension point is org.sonar.api.profiles.ProfileDefinition, whereas XMLProfileParser and AnnotationProfileParser are components that can be used but not extended.
Diffstat (limited to 'sonar-server/src/test')
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/qualitymodel/DefaultModelManagerTest.java | 2 | ||||
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/rules/DeprecatedProfilesTest.java | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sonar-server/src/test/java/org/sonar/server/qualitymodel/DefaultModelManagerTest.java b/sonar-server/src/test/java/org/sonar/server/qualitymodel/DefaultModelManagerTest.java index 058e649d5bc..73d2e9b8938 100644 --- a/sonar-server/src/test/java/org/sonar/server/qualitymodel/DefaultModelManagerTest.java +++ b/sonar-server/src/test/java/org/sonar/server/qualitymodel/DefaultModelManagerTest.java @@ -114,7 +114,7 @@ class FakeDefinition extends ModelDefinition { } @Override - public Model create() { + public Model createModel() { return model; } diff --git a/sonar-server/src/test/java/org/sonar/server/rules/DeprecatedProfilesTest.java b/sonar-server/src/test/java/org/sonar/server/rules/DeprecatedProfilesTest.java index cd5b40f38ab..187a3ed8e1f 100644 --- a/sonar-server/src/test/java/org/sonar/server/rules/DeprecatedProfilesTest.java +++ b/sonar-server/src/test/java/org/sonar/server/rules/DeprecatedProfilesTest.java @@ -23,7 +23,6 @@ import org.junit.Test; import org.sonar.api.rules.Rule; import org.sonar.api.rules.RulePriority; import org.sonar.api.utils.ValidationMessages; -import org.sonar.server.rules.DeprecatedProfiles; import static org.hamcrest.Matchers.is; import static org.hamcrest.core.IsNull.nullValue; @@ -31,7 +30,7 @@ import static org.junit.Assert.assertThat; public class DeprecatedProfilesTest { @Test - public void testCreate() { + public void shouldCreateProfile() { DeprecatedProfiles.DefaultProfileDefinition def = DeprecatedProfiles.DefaultProfileDefinition.create("sonar way", "java"); assertThat(def.createProfile(ValidationMessages.create()).getName(), is("sonar way")); assertThat(def.createProfile(ValidationMessages.create()).getLanguage(), is("java")); |