aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-core
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2019-05-16 10:31:00 +0200
committerSonarTech <sonartech@sonarsource.com>2019-05-22 20:21:15 +0200
commit09ab6b574f976764a312d685b173f1ac47b35aa0 (patch)
tree258f7da9eae562ab449c584906eb965223857c8f /server/sonar-db-core
parent023f54edfeb8f88ad79beafe23018e7637cba902 (diff)
downloadsonarqube-09ab6b574f976764a312d685b173f1ac47b35aa0.tar.gz
sonarqube-09ab6b574f976764a312d685b173f1ac47b35aa0.zip
SONAR-12026 Migrate existing hotspots statuses
Diffstat (limited to 'server/sonar-db-core')
-rw-r--r--server/sonar-db-core/src/test/java/org/sonar/db/AbstractDbTester.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-db-core/src/test/java/org/sonar/db/AbstractDbTester.java b/server/sonar-db-core/src/test/java/org/sonar/db/AbstractDbTester.java
index dc78aa459b1..3ea4852ccf5 100644
--- a/server/sonar-db-core/src/test/java/org/sonar/db/AbstractDbTester.java
+++ b/server/sonar-db-core/src/test/java/org/sonar/db/AbstractDbTester.java
@@ -244,6 +244,9 @@ public class AbstractDbTester<T extends CoreTestDb> extends ExternalResource {
} else if (value instanceof Integer) {
// To be consistent, all INTEGER types are mapped as Long
value = ((Integer) value).longValue();
+ } else if (value instanceof Byte) {
+ Byte byteValue = (Byte) value;
+ value = byteValue.intValue();
} else if (value instanceof Timestamp) {
value = new Date(((Timestamp) value).getTime());
}