]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3306 Improve unit test to fix issue on it-sonar-persistence tests
authorJulien Lancelot <julien.lancelot@gmail.com>
Tue, 4 Dec 2012 09:00:50 +0000 (10:00 +0100)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 4 Dec 2012 09:00:50 +0000 (10:00 +0100)
sonar-core/src/test/java/org/sonar/core/persistence/SemaphoreDaoTest.java

index 88b3a3c8764057f91497392b1e904c9c51521c95..75582e650b1aefab902b33ec487398c2901517d0 100644 (file)
@@ -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();