Polish
See gh-11783
This commit is contained in:
committed by
Stephane Nicoll
parent
fe7d7e2fc9
commit
64c324612e
@@ -62,7 +62,7 @@ public class DataLdapTestIntegrationTests {
|
||||
public void testRepository() {
|
||||
LdapQuery ldapQuery = LdapQueryBuilder.query().where("cn").is("Bob Smith");
|
||||
Optional<ExampleEntry> entry = this.exampleRepository.findOne(ldapQuery);
|
||||
assertThat(entry.isPresent());
|
||||
assertThat(entry.isPresent()).isTrue();
|
||||
assertThat(entry.get().getDn()).isEqualTo(LdapUtils
|
||||
.newLdapName("cn=Bob Smith,ou=company1,c=Sweden,dc=spring,dc=org"));
|
||||
assertThat(this.ldapTemplate.findOne(ldapQuery, ExampleEntry.class).getDn())
|
||||
|
||||
@@ -79,19 +79,16 @@ class StaticResourceJars {
|
||||
}
|
||||
|
||||
private void addUrlFile(List<URL> urls, URL url, File file) {
|
||||
if (file.isDirectory() && new File(file, "META-INF/resources").isDirectory()) {
|
||||
urls.add(url);
|
||||
}
|
||||
else if (isResourcesJar(file)) {
|
||||
if ((file.isDirectory() && new File(file, "META-INF/resources").isDirectory())
|
||||
|| isResourcesJar(file)) {
|
||||
urls.add(url);
|
||||
}
|
||||
}
|
||||
|
||||
private void addUrlConnection(List<URL> urls, URL url, URLConnection connection) {
|
||||
if (connection instanceof JarURLConnection) {
|
||||
if (isResourcesJar((JarURLConnection) connection)) {
|
||||
urls.add(url);
|
||||
}
|
||||
if (connection instanceof JarURLConnection
|
||||
&& isResourcesJar((JarURLConnection) connection)) {
|
||||
urls.add(url);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -113,8 +113,8 @@ public class InvalidConfigurationPropertyValueFailureAnalyzerTests {
|
||||
FailureAnalysis analysis) {
|
||||
assertThat(analysis.getDescription()).contains("test.property")
|
||||
.contains("invalid").contains("TestOrigin test.property");
|
||||
assertThat(analysis.getAction()
|
||||
.contains("Review the value of the property with the provided reason."));
|
||||
assertThat(analysis.getAction())
|
||||
.contains("Review the value of the property with the provided reason.");
|
||||
assertThat(analysis.getCause()).isSameAs(failure);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user