|
|
|
@ -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 { |
|
|
|
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"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|