diff options
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")); |