diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-10 22:34:55 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-11 11:20:31 +0200 |
commit | 47a1c603fa19bf115bd3a0b9689705bd68a988ff (patch) | |
tree | 4094565dc815418ffdfdd9c47a8d9abd9caa6f88 /sonar-core/src/test | |
parent | a774a62aec4318d3db04aaa8bc0a4cf741959f03 (diff) | |
download | sonarqube-47a1c603fa19bf115bd3a0b9689705bd68a988ff.tar.gz sonarqube-47a1c603fa19bf115bd3a0b9689705bd68a988ff.zip |
SONAR-5007 remove Hibernate entities RulesProfile, ActiveRule and
ActiveRuleParam
Diffstat (limited to 'sonar-core/src/test')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/jpa/dao/ProfilesDaoTest.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/sonar-core/src/test/java/org/sonar/jpa/dao/ProfilesDaoTest.java b/sonar-core/src/test/java/org/sonar/jpa/dao/ProfilesDaoTest.java deleted file mode 100644 index eae5cbcbb1c..00000000000 --- a/sonar-core/src/test/java/org/sonar/jpa/dao/ProfilesDaoTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * SonarQube is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonar.jpa.dao; - -import org.junit.Before; -import org.junit.Test; -import org.sonar.api.profiles.RulesProfile; -import org.sonar.jpa.test.AbstractDbUnitTestCase; - -import static org.fest.assertions.Assertions.assertThat; - -public class ProfilesDaoTest extends AbstractDbUnitTestCase { - - private ProfilesDao profilesDao; - - @Before - public void setup() { - profilesDao = new ProfilesDao(getSession()); - } - - @Test - public void should_get_profile_by_name() { - RulesProfile profile = RulesProfile.create("my profile", "java"); - getSession().save(profile); - - assertThat(profilesDao.getProfile("unknown language", "my profile")).isNull(); - assertThat(profilesDao.getProfile("java", "my profile").getName()).isEqualTo("my profile"); - } -} |