aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2012-12-04 10:00:50 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2012-12-04 10:00:50 +0100
commitfe5e5d0c6c9e0629469df039d0a1b65c505a2f7d (patch)
tree6c7b973d268ebedeb8994ccd6393780e58eaab29 /sonar-core
parent1a0966368aeb94d234ea01aab23ab9bedb8ed15a (diff)
downloadsonarqube-fe5e5d0c6c9e0629469df039d0a1b65c505a2f7d.tar.gz
sonarqube-fe5e5d0c6c9e0629469df039d0a1b65c505a2f7d.zip
SONAR-3306 Improve unit test to fix issue on it-sonar-persistence tests
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/test/java/org/sonar/core/persistence/SemaphoreDaoTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/persistence/SemaphoreDaoTest.java b/sonar-core/src/test/java/org/sonar/core/persistence/SemaphoreDaoTest.java
index 88b3a3c8764..75582e650b1 100644
--- a/sonar-core/src/test/java/org/sonar/core/persistence/SemaphoreDaoTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/persistence/SemaphoreDaoTest.java
@@ -190,7 +190,7 @@ public class SemaphoreDaoTest extends AbstractDaoTestCase {
public void should_select_semaphore_return_current_semaphore_when_acquiring() throws Exception {
dao.acquire("foo");
- SemaphoreDto semaphore = dao.selectSemaphore("foo", getMyBatis().openSession());
+ SemaphoreDto semaphore = selectSemaphore("foo");
assertThat(semaphore).isNotNull();
assertThat(semaphore.getName()).isEqualTo("foo");
assertThat(semaphore.getCreatedAt()).isNotNull();