test: more tests scenarios
@@ -6,6 +6,14 @@ class DbTypeSpec extends Specification {
void "toString() returns lowercase"() {
expect:
- "mariadb" == DbType.MARIADB.toString();
+ toString == dbtype.toString()
+
+ where:
+ toString | dbtype
+ 'postgresql'| DbType.POSTGRESQL
+ 'mysql' | DbType.MYSQL
+ 'mariadb' | DbType.MARIADB
+ 'mssql' | DbType.SQLSERVER
+ 'oracle' | DbType.ORACLEXE
}
}
