Java project compiles; need serializer for tests

This commit is contained in:
Daniel J. Summers 2025-03-13 07:45:48 -04:00
parent 5bcbc5cffc
commit 5f0a6e4434

View File

@ -20,7 +20,7 @@ class ParametersTest {
*/
@AfterEach
fun cleanUp() {
Configuration.dialectValue = null
Configuration.connectionString = null
}
@Test
@ -64,7 +64,7 @@ class ParametersTest {
@Test
@DisplayName("fieldNames generates a single parameter (PostgreSQL)")
fun fieldNamesSinglePostgres() {
Configuration.dialectValue = Dialect.POSTGRESQL
Configuration.connectionString = ":postgresql:"
val nameParams = Parameters.fieldNames(listOf("test")).toList()
assertEquals(1, nameParams.size, "There should be one name parameter")
assertEquals(":name", nameParams[0].name, "The parameter name is incorrect")
@ -75,7 +75,7 @@ class ParametersTest {
@Test
@DisplayName("fieldNames generates multiple parameters (PostgreSQL)")
fun fieldNamesMultiplePostgres() {
Configuration.dialectValue = Dialect.POSTGRESQL
Configuration.connectionString = ":postgresql:"
val nameParams = Parameters.fieldNames(listOf("test", "this", "today")).toList()
assertEquals(1, nameParams.size, "There should be one name parameter")
assertEquals(":name", nameParams[0].name, "The parameter name is incorrect")
@ -86,7 +86,7 @@ class ParametersTest {
@Test
@DisplayName("fieldNames generates a single parameter (SQLite)")
fun fieldNamesSingleSQLite() {
Configuration.dialectValue = Dialect.SQLITE
Configuration.connectionString = ":sqlite:"
val nameParams = Parameters.fieldNames(listOf("test")).toList()
assertEquals(1, nameParams.size, "There should be one name parameter")
assertEquals(":name0", nameParams[0].name, "The parameter name is incorrect")
@ -97,7 +97,7 @@ class ParametersTest {
@Test
@DisplayName("fieldNames generates multiple parameters (SQLite)")
fun fieldNamesMultipleSQLite() {
Configuration.dialectValue = Dialect.SQLITE
Configuration.connectionString = ":sqlite:"
val nameParams = Parameters.fieldNames(listOf("test", "this", "today")).toList()
assertEquals(3, nameParams.size, "There should be one name parameter")
assertEquals(":name0", nameParams[0].name, "The first parameter name is incorrect")