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
3f1aaa1f
Commit
3f1aaa1f
authored
Jan 26, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish contribution
Closes gh-11783
parent
64c32461
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
DataLdapTestIntegrationTests.java
...autoconfigure/data/ldap/DataLdapTestIntegrationTests.java
+1
-1
StaticResourceJars.java
...framework/boot/web/servlet/server/StaticResourceJars.java
+1
-1
InvalidConfigurationPropertyValueFailureAnalyzerTests.java
...nvalidConfigurationPropertyValueFailureAnalyzerTests.java
+6
-3
No files found.
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/ldap/DataLdapTestIntegrationTests.java
View file @
3f1aaa1f
/*
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/StaticResourceJars.java
View file @
3f1aaa1f
/*
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/InvalidConfigurationPropertyValueFailureAnalyzerTests.java
View file @
3f1aaa1f
...
@@ -58,6 +58,8 @@ public class InvalidConfigurationPropertyValueFailureAnalyzerTests {
...
@@ -58,6 +58,8 @@ public class InvalidConfigurationPropertyValueFailureAnalyzerTests {
"test.property"
,
"invalid"
,
"This is not valid."
);
"test.property"
,
"invalid"
,
"This is not valid."
);
FailureAnalysis
analysis
=
performAnalysis
(
failure
);
FailureAnalysis
analysis
=
performAnalysis
(
failure
);
assertCommonParts
(
failure
,
analysis
);
assertCommonParts
(
failure
,
analysis
);
assertThat
(
analysis
.
getAction
())
.
contains
(
"Review the value of the property with the provided reason."
);
assertThat
(
analysis
.
getDescription
())
assertThat
(
analysis
.
getDescription
())
.
contains
(
"Validation failed for the following reason"
)
.
contains
(
"Validation failed for the following reason"
)
.
contains
(
"This is not valid."
)
.
contains
(
"This is not valid."
)
...
@@ -73,7 +75,8 @@ public class InvalidConfigurationPropertyValueFailureAnalyzerTests {
...
@@ -73,7 +75,8 @@ public class InvalidConfigurationPropertyValueFailureAnalyzerTests {
InvalidConfigurationPropertyValueException
failure
=
new
InvalidConfigurationPropertyValueException
(
InvalidConfigurationPropertyValueException
failure
=
new
InvalidConfigurationPropertyValueException
(
"test.property"
,
"invalid"
,
null
);
"test.property"
,
"invalid"
,
null
);
FailureAnalysis
analysis
=
performAnalysis
(
failure
);
FailureAnalysis
analysis
=
performAnalysis
(
failure
);
assertCommonParts
(
failure
,
analysis
);
assertThat
(
analysis
.
getAction
())
.
contains
(
"Review the value of the property."
);
assertThat
(
analysis
.
getDescription
()).
contains
(
"No reason was provided."
)
assertThat
(
analysis
.
getDescription
()).
contains
(
"No reason was provided."
)
.
doesNotContain
(
"Additionally, this property is also set"
);
.
doesNotContain
(
"Additionally, this property is also set"
);
}
}
...
@@ -95,6 +98,8 @@ public class InvalidConfigurationPropertyValueFailureAnalyzerTests {
...
@@ -95,6 +98,8 @@ public class InvalidConfigurationPropertyValueFailureAnalyzerTests {
"test.property"
,
"invalid"
,
"This is not valid."
);
"test.property"
,
"invalid"
,
"This is not valid."
);
FailureAnalysis
analysis
=
performAnalysis
(
failure
);
FailureAnalysis
analysis
=
performAnalysis
(
failure
);
assertCommonParts
(
failure
,
analysis
);
assertCommonParts
(
failure
,
analysis
);
assertThat
(
analysis
.
getAction
())
.
contains
(
"Review the value of the property with the provided reason."
);
assertThat
(
analysis
.
getDescription
())
assertThat
(
analysis
.
getDescription
())
.
contains
(
"Additionally, this property is also set in the following "
.
contains
(
"Additionally, this property is also set in the following "
+
"property sources:"
)
+
"property sources:"
)
...
@@ -113,8 +118,6 @@ public class InvalidConfigurationPropertyValueFailureAnalyzerTests {
...
@@ -113,8 +118,6 @@ public class InvalidConfigurationPropertyValueFailureAnalyzerTests {
FailureAnalysis
analysis
)
{
FailureAnalysis
analysis
)
{
assertThat
(
analysis
.
getDescription
()).
contains
(
"test.property"
)
assertThat
(
analysis
.
getDescription
()).
contains
(
"test.property"
)
.
contains
(
"invalid"
).
contains
(
"TestOrigin test.property"
);
.
contains
(
"invalid"
).
contains
(
"TestOrigin test.property"
);
assertThat
(
analysis
.
getAction
())
.
contains
(
"Review the value of the property with the provided reason."
);
assertThat
(
analysis
.
getCause
()).
isSameAs
(
failure
);
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