From: Sébastien Lesaint Date: Thu, 18 Aug 2016 15:57:54 +0000 (+0200) Subject: fixing coverage of ClobColumnDef X-Git-Tag: 6.1-RC1~343 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=09e57746367893119c05bceb1f42748783d03a4e;p=sonarqube.git fixing coverage of ClobColumnDef --- diff --git a/sonar-db/src/test/java/org/sonar/db/version/ClobColumnDefTest.java b/sonar-db/src/test/java/org/sonar/db/version/ClobColumnDefTest.java index d92f42d28bd..6843b81711a 100644 --- a/sonar-db/src/test/java/org/sonar/db/version/ClobColumnDefTest.java +++ b/sonar-db/src/test/java/org/sonar/db/version/ClobColumnDefTest.java @@ -26,6 +26,7 @@ import org.sonar.db.dialect.H2; import org.sonar.db.dialect.MsSql; import org.sonar.db.dialect.MySql; import org.sonar.db.dialect.Oracle; +import org.sonar.db.dialect.PostgreSql; import static org.assertj.core.api.Assertions.assertThat; @@ -74,6 +75,11 @@ public class ClobColumnDefTest { assertThat(underTest.generateSqlType(new Oracle())).isEqualTo("CLOB"); } + @Test + public void generate_sql_type_on_postgre() throws Exception { + assertThat(underTest.generateSqlType(new PostgreSql())).isEqualTo("TEXT"); + } + @Test public void fail_with_NPE_if_name_is_null() throws Exception { thrown.expect(NullPointerException.class);