]> source.dussan.org Git - sonarqube.git/commit
New attempt to speed-up db tests
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 21 Jan 2015 19:17:37 +0000 (20:17 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 21 Jan 2015 19:23:54 +0000 (20:23 +0100)
commit26352ecb322f6dd015ee41e5fcc117446dd9a0d2
treeee8d5c2564ff832c20996ac357f563223aac279f
parent7555eb77293161ca13ef8abb84339af483b8135e
New attempt to speed-up db tests

TRUNCATE is slow, even of empty tables, so it must be executed only if count(*)>0
sonar-core/src/test/java/org/sonar/core/persistence/DatabaseCommands.java