diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-03-14 10:10:31 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-03-14 10:11:51 +0400 |
commit | 7e83fc767544821bd204d3b70f602e88cf61d25a (patch) | |
tree | 39b4a03fa27776133103c891d6f6801bc7c7ced5 /sonar-core/src | |
parent | abb8bac7ab3717b32adea21fa58d20adb6ea7499 (diff) | |
download | sonarqube-7e83fc767544821bd204d3b70f602e88cf61d25a.tar.gz sonarqube-7e83fc767544821bd204d3b70f602e88cf61d25a.zip |
Fix quality flaws in tests: remove unused imports
Diffstat (limited to 'sonar-core/src')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/persistence/MyBatisTest.java | 3 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/review/ReviewDaoTest.java | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/persistence/MyBatisTest.java b/sonar-core/src/test/java/org/sonar/core/persistence/MyBatisTest.java index 254881f268e..1905ded8649 100644 --- a/sonar-core/src/test/java/org/sonar/core/persistence/MyBatisTest.java +++ b/sonar-core/src/test/java/org/sonar/core/persistence/MyBatisTest.java @@ -20,7 +20,6 @@ package org.sonar.core.persistence; import org.apache.ibatis.session.Configuration; -import org.apache.ibatis.session.ExecutorType; import org.apache.ibatis.session.SqlSession; import org.hamcrest.core.Is; import org.junit.AfterClass; @@ -38,7 +37,7 @@ public class MyBatisTest { static { DerbyUtils.fixDerbyLogs(); } - + private static MyBatis myBatis; private static InMemoryDatabase database; diff --git a/sonar-core/src/test/java/org/sonar/core/review/ReviewDaoTest.java b/sonar-core/src/test/java/org/sonar/core/review/ReviewDaoTest.java index 3602ac3c588..155ba0f3d76 100644 --- a/sonar-core/src/test/java/org/sonar/core/review/ReviewDaoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/review/ReviewDaoTest.java @@ -28,7 +28,6 @@ import java.util.Collection; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.nullValue; -import static org.junit.Assert.assertNull; import static org.junit.Assert.assertThat; public class ReviewDaoTest extends DaoTestCase { @@ -96,7 +95,7 @@ public class ReviewDaoTest extends DaoTestCase { review.setUpdatedAt(DateUtils.parseDate("2012-07-01")); dao.update(reviews); - + checkTables("update", "reviews"); } } |