Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
64c32461
Commit
64c32461
authored
Jan 25, 2018
by
Raja Kolli
Committed by
Stephane Nicoll
Jan 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-11783
parent
fe7d7e2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
DataLdapTestIntegrationTests.java
...autoconfigure/data/ldap/DataLdapTestIntegrationTests.java
+1
-1
StaticResourceJars.java
...framework/boot/web/servlet/server/StaticResourceJars.java
+5
-8
InvalidConfigurationPropertyValueFailureAnalyzerTests.java
...nvalidConfigurationPropertyValueFailureAnalyzerTests.java
+2
-2
No files found.
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/ldap/DataLdapTestIntegrationTests.java
View file @
64c32461
...
...
@@ -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
())
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/StaticResourceJars.java
View file @
64c32461
...
...
@@ -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
);
}
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/InvalidConfigurationPropertyValueFailureAnalyzerTests.java
View file @
64c32461
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment