aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-06-18 14:59:47 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-06-18 15:00:26 +0200
commit0868edd97e381ecd5581d0c3ba2a72c993966091 (patch)
treee7088d331c6f74c11519ebf6ea69a2ed58cd901b
parent9148f380a112779f829d737431c9daf5af726e5b (diff)
downloadsonarqube-0868edd97e381ecd5581d0c3ba2a72c993966091.tar.gz
sonarqube-0868edd97e381ecd5581d0c3ba2a72c993966091.zip
SONAR-6616 WS custom_measures/delete fix MySql unit test...
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/measure/custom/ws/DeleteActionTest.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/measure/custom/ws/DeleteActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/measure/custom/ws/DeleteActionTest.java
index 6beb7592748..649565ae477 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/measure/custom/ws/DeleteActionTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/measure/custom/ws/DeleteActionTest.java
@@ -80,10 +80,8 @@ public class DeleteActionTest {
public void delete_in_db() throws Exception {
long id = insertCustomMeasure(newCustomMeasureDto());
long anotherId = insertCustomMeasure(newCustomMeasureDto());
- assertThat(dbClient.customMeasureDao().selectNullableById(dbSession, id)).isNotNull();
WsTester.Result response = newRequest().setParam(PARAM_ID, String.valueOf(id)).execute();
- dbSession.commit();
assertThat(dbClient.customMeasureDao().selectNullableById(dbSession, id)).isNull();
assertThat(dbClient.customMeasureDao().selectNullableById(dbSession, anotherId)).isNotNull();