]> source.dussan.org Git - sonarqube.git/commitdiff
fixing coverage of ClobColumnDef
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 18 Aug 2016 15:57:54 +0000 (17:57 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 22 Aug 2016 08:25:43 +0000 (10:25 +0200)
sonar-db/src/test/java/org/sonar/db/version/ClobColumnDefTest.java

index d92f42d28bdf48a38851ca756c8eacd687028e2d..6843b81711aa769650c91ea051269fc63e7e836e 100644 (file)
@@ -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);