Polish assertions

See gh-23762
This commit is contained in:
Stephane Nicoll 2020-10-20 14:37:15 +02:00
parent 0e50e87e58
commit 72eaf93dba
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,7 @@ class DataSourcePropertiesTests {
DataSourceProperties properties = new DataSourceProperties();
properties.setUsername("");
properties.afterPropertiesSet();
assertThat(properties.getUsername()).isEqualTo("");
assertThat(properties.determineUsername()).isEqualTo("sa");
}
@ -111,6 +112,7 @@ class DataSourcePropertiesTests {
DataSourceProperties properties = new DataSourceProperties();
properties.setUsername(null);
properties.afterPropertiesSet();
assertThat(properties.getUsername()).isNull();
assertThat(properties.determineUsername()).isEqualTo("sa");
}