Commit 72eaf93d authored by Stephane Nicoll's avatar Stephane Nicoll

Polish assertions

See gh-23762
parent 0e50e87e
...@@ -103,6 +103,7 @@ class DataSourcePropertiesTests { ...@@ -103,6 +103,7 @@ class DataSourcePropertiesTests {
DataSourceProperties properties = new DataSourceProperties(); DataSourceProperties properties = new DataSourceProperties();
properties.setUsername(""); properties.setUsername("");
properties.afterPropertiesSet(); properties.afterPropertiesSet();
assertThat(properties.getUsername()).isEqualTo("");
assertThat(properties.determineUsername()).isEqualTo("sa"); assertThat(properties.determineUsername()).isEqualTo("sa");
} }
...@@ -111,6 +112,7 @@ class DataSourcePropertiesTests { ...@@ -111,6 +112,7 @@ class DataSourcePropertiesTests {
DataSourceProperties properties = new DataSourceProperties(); DataSourceProperties properties = new DataSourceProperties();
properties.setUsername(null); properties.setUsername(null);
properties.afterPropertiesSet(); properties.afterPropertiesSet();
assertThat(properties.getUsername()).isNull();
assertThat(properties.determineUsername()).isEqualTo("sa"); assertThat(properties.determineUsername()).isEqualTo("sa");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment