From: Julien Lancelot Date: Tue, 4 Dec 2012 09:00:50 +0000 (+0100) Subject: SONAR-3306 Improve unit test to fix issue on it-sonar-persistence tests X-Git-Tag: 3.4~199 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe5e5d0c6c9e0629469df039d0a1b65c505a2f7d;p=sonarqube.git SONAR-3306 Improve unit test to fix issue on it-sonar-persistence tests --- 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();