Add validation to field param name

This commit is contained in:
2025-02-17 18:53:33 -05:00
parent 623e49243d
commit 0b11b803cc
2 changed files with 13 additions and 5 deletions

View File

@@ -530,6 +530,12 @@ class FieldTest {
assertNull(field.qualifier, "The qualifier should have been null")
}
@Test
@DisplayName("static constructors fail for invalid parameter name")
fun staticCtorsFailOnParamName() {
assertThrows<DocumentException> { Field.equal("a", "b", "that ain't it, Jack...") }
}
@Test
@DisplayName("nameToPath creates a simple PostgreSQL SQL name")
fun nameToPathPostgresSimpleSQL() =