From 09e57746367893119c05bceb1f42748783d03a4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Thu, 18 Aug 2016 17:57:54 +0200 Subject: [PATCH] fixing coverage of ClobColumnDef --- .../test/java/org/sonar/db/version/ClobColumnDefTest.java | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.5