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;
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);