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
cde4f0d6
Commit
cde4f0d6
authored
Jun 07, 2019
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix checkstyle violations
parent
4c21dc1c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
26 deletions
+27
-26
ControllerEndpointDiscovererTests.java
...int/web/annotation/ControllerEndpointDiscovererTests.java
+2
-3
ServletEndpointDiscovererTests.java
...dpoint/web/annotation/ServletEndpointDiscovererTests.java
+2
-3
FirstConfiguration.java
...ot/autoconfigure/packagestest/one/FirstConfiguration.java
+0
-1
EmbeddedServerContainerInvocationContextProvider.java
...ded/EmbeddedServerContainerInvocationContextProvider.java
+13
-11
EmbeddedServletContainerTest.java
...k/boot/context/embedded/EmbeddedServletContainerTest.java
+8
-7
checkstyle-suppressions.xml
src/checkstyle/checkstyle-suppressions.xml
+1
-0
nohttp-checkstyle-suppressions.xml
src/checkstyle/nohttp-checkstyle-suppressions.xml
+1
-1
No files found.
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/annotation/ControllerEndpointDiscovererTests.java
View file @
cde4f0d6
...
...
@@ -122,9 +122,8 @@ class ControllerEndpointDiscovererTests {
@Test
void
getEndpointWhenEndpointHasOperationsShouldThrowException
()
{
this
.
contextRunner
.
withUserConfiguration
(
TestControllerWithOperation
.
class
)
.
run
(
assertDiscoverer
((
discoverer
)
->
assertThatIllegalStateException
()
.
isThrownBy
(
discoverer:
:
getEndpoints
)
this
.
contextRunner
.
withUserConfiguration
(
TestControllerWithOperation
.
class
).
run
(
assertDiscoverer
((
discoverer
)
->
assertThatIllegalStateException
().
isThrownBy
(
discoverer:
:
getEndpoints
)
.
withMessageContaining
(
"ControllerEndpoints must not declare operations"
)));
}
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/annotation/ServletEndpointDiscovererTests.java
View file @
cde4f0d6
...
...
@@ -105,9 +105,8 @@ class ServletEndpointDiscovererTests {
@Test
void
getEndpointWhenEndpointHasOperationsShouldThrowException
()
{
this
.
contextRunner
.
withUserConfiguration
(
TestServletEndpointWithOperation
.
class
)
.
run
(
assertDiscoverer
((
discoverer
)
->
assertThatIllegalStateException
()
.
isThrownBy
(
discoverer:
:
getEndpoints
)
this
.
contextRunner
.
withUserConfiguration
(
TestServletEndpointWithOperation
.
class
).
run
(
assertDiscoverer
((
discoverer
)
->
assertThatIllegalStateException
().
isThrownBy
(
discoverer:
:
getEndpoints
)
.
withMessageContaining
(
"ServletEndpoints must not declare operations"
)));
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/packagestest/one/FirstConfiguration.java
View file @
cde4f0d6
...
...
@@ -16,7 +16,6 @@
package
org
.
springframework
.
boot
.
autoconfigure
.
packagestest
.
one
;
import
org.springframework.boot.autoconfigure.AutoConfigurationPackagesTests
;
import
org.springframework.boot.autoconfigure.AutoConfigurationPackagesTests.TestRegistrar
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Import
;
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java
View file @
cde4f0d6
...
...
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http
s
://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
@@ -75,15 +75,17 @@ class EmbeddedServerContainerInvocationContextProvider
EmbeddedServletContainerTest
annotation
=
context
.
getRequiredTestClass
()
.
getAnnotation
(
EmbeddedServletContainerTest
.
class
);
return
CONTAINERS
.
stream
()
.
map
((
container
)
->
new
ApplicationBuilder
(
this
.
tempDir
,
annotation
.
packaging
(),
container
))
.
flatMap
((
builder
)
->
{
return
Stream
.
of
(
annotation
.
launchers
())
.
map
((
launcherClass
)
->
ReflectionUtils
.
newInstance
(
launcherClass
,
builder
,
buildOutput
))
.
map
((
launcher
)
->
new
EmbeddedServletContainerInvocationContext
(
StringUtils
.
capitalize
(
builder
.
getContainer
())
+
": "
+
launcher
.
getDescription
(
builder
.
getPackaging
()),
launcher
));
});
.
map
((
container
)
->
new
ApplicationBuilder
(
this
.
tempDir
,
annotation
.
packaging
(),
container
))
.
flatMap
(
(
builder
)
->
Stream
.
of
(
annotation
.
launchers
()).
map
(
(
launcherClass
)
->
ReflectionUtils
.
newInstance
(
launcherClass
,
builder
,
buildOutput
))
.
map
((
launcher
)
->
new
EmbeddedServletContainerInvocationContext
(
StringUtils
.
capitalize
(
builder
.
getContainer
())
+
": "
+
launcher
.
getDescription
(
builder
.
getPackaging
()),
launcher
)));
}
@Override
...
...
@@ -135,7 +137,7 @@ class EmbeddedServerContainerInvocationContextProvider
}
private
static
class
RestTemplateParameterResolver
implements
ParameterResolver
{
private
static
final
class
RestTemplateParameterResolver
implements
ParameterResolver
{
private
final
AbstractApplicationLauncher
launcher
;
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServletContainerTest.java
View file @
cde4f0d6
...
...
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http
s
://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
@@ -16,19 +16,20 @@
package
org
.
springframework
.
boot
.
context
.
embedded
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
import
org.junit.jupiter.api.extension.ExtendWith
;
import
static
java
.
lang
.
annotation
.
ElementType
.
TYPE
;
import
static
java
.
lang
.
annotation
.
RetentionPolicy
.
RUNTIME
;
/**
* @author awilkinson
* Annotation used to configure servlet container tests.
*
* @author Andy Wilkinson
*/
@Retention
(
RUNTIME
)
@Target
(
TYPE
)
@Retention
(
R
etentionPolicy
.
R
UNTIME
)
@Target
(
ElementType
.
TYPE
)
@ExtendWith
(
EmbeddedServerContainerInvocationContextProvider
.
class
)
public
@interface
EmbeddedServletContainerTest
{
...
...
src/checkstyle/checkstyle-suppressions.xml
View file @
cde4f0d6
...
...
@@ -3,6 +3,7 @@
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
<suppress
files=
"[\\/]src[\\/]test[\\/]"
checks=
"RedundantModifier"
/>
<suppress
files=
"SpringApplicationTests\.java"
checks=
"FinalClass"
/>
<suppress
files=
".+Configuration\.java"
checks=
"HideUtilityClassConstructor"
/>
<suppress
files=
".+Application\.java"
checks=
"HideUtilityClassConstructor"
/>
...
...
src/checkstyle/nohttp-checkstyle-suppressions.xml
View file @
cde4f0d6
...
...
@@ -6,7 +6,7 @@
<suppress
files=
"[\\/]transaction-logs[\\/]"
checks=
"NoHttp"
/>
<suppress
files=
"[\\/]target[\\/]"
checks=
"NoHttp"
/>
<suppress
files=
"[\\/]build.log"
checks=
"NoHttp"
/>
<suppress
files=
".+\.(jar|git|ico|p12|gif|jks|jpg)"
checks=
"NoHttp"
/>
<suppress
files=
".+\.(jar|git|ico|p12|gif|jks|jpg
|svg
)"
checks=
"NoHttp"
/>
<suppress
files=
"dependency-reduced-pom.xml"
checks=
"NoHttp"
/>
<suppress
files=
"jquery.validate.js"
checks=
"NoHttp"
/>
<suppress
files=
"jquery-[0-9]\.[0-9]\.[0-9].js"
checks=
"NoHttp"
/>
...
...
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