QQQ-21: fixed broken tests due to no longer serializing null/empty fields

This commit is contained in:
Tim Chamberlain
2022-07-08 15:14:49 -05:00
parent c6b19b0176
commit 07def45086
2 changed files with 2 additions and 3 deletions

View File

@ -58,8 +58,7 @@ public class TestUtils
.withVendor("h2") .withVendor("h2")
.withHostName("mem") .withHostName("mem")
.withDatabaseName("test_database") .withDatabaseName("test_database")
.withUsername("sa") .withUsername("sa");
.withPassword("");
rdbmsBackendMetaData.setName("default"); rdbmsBackendMetaData.setName("default");
return (rdbmsBackendMetaData); return (rdbmsBackendMetaData);
} }

View File

@ -49,7 +49,7 @@ class RDBMSBackendMetaDataTest
System.out.println(JsonUtils.prettyPrint(json)); System.out.println(JsonUtils.prettyPrint(json));
System.out.println(json); System.out.println(json);
String expectToContain = """ String expectToContain = """
"backends":{"default":{"hostName":"mem","password":"","databaseName":"test_database\""""; "backends":{"default":{"hostName":"mem","databaseName":"test_database\"""";
assertTrue(json.contains(expectToContain)); assertTrue(json.contains(expectToContain));
} }