SQLServer JDBC Format

[resolves #11]

Signed-off-by: Ben Hale <bhale@vmware.com>
This commit is contained in:
Ben Hale
2020-05-11 08:55:29 -07:00
parent 27b3adf1a6
commit 6c51ac5712
2 changed files with 6 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ final class SqlServerBindingsPropertiesProcessorTest {
new Binding("test-name", Paths.get("test-path"),
Collections.singletonMap("kind", KIND),
new FluentMap()
.withEntry("db", "test-db")
.withEntry("database", "test-database")
.withEntry("host", "test-host")
.withEntry("password", "test-password")
.withEntry("port", "test-port")
@@ -52,8 +52,7 @@ final class SqlServerBindingsPropertiesProcessorTest {
assertThat(properties)
.containsEntry("spring.datasource.driver-class-name", "com.microsoft.sqlserver.jdbc.SQLServerDriver")
.containsEntry("spring.datasource.password", "test-password")
.containsEntry("spring.datasource.url",
"jdbc:sqlserver://test-host:test-port/test-db?user=test-username&password=test-password")
.containsEntry("spring.datasource.url", "jdbc:sqlserver://test-host:test-port/test-database")
.containsEntry("spring.datasource.username", "test-username");
}