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
55ec016b
Commit
55ec016b
authored
Oct 06, 2018
by
dreis2211
Committed by
Stephane Nicoll
Oct 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused fields in tests
Closes gh-14707
parent
bbdd6cc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
21 deletions
+0
-21
PropertiesMeterFilterTests.java
...ate/autoconfigure/metrics/PropertiesMeterFilterTests.java
+0
-11
ServletWebServerFactoryCustomizerTests.java
...e/web/servlet/ServletWebServerFactoryCustomizerTests.java
+0
-7
CommandRunnerTests.java
.../springframework/boot/cli/command/CommandRunnerTests.java
+0
-3
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/PropertiesMeterFilterTests.java
View file @
55ec016b
...
...
@@ -24,12 +24,9 @@ import io.micrometer.core.instrument.Meter.Type;
import
io.micrometer.core.instrument.config.MeterFilterReply
;
import
io.micrometer.core.instrument.distribution.DistributionStatisticConfig
;
import
io.micrometer.core.instrument.simple.SimpleMeterRegistry
;
import
org.junit.Before
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.mockito.Mock
;
import
org.mockito.MockitoAnnotations
;
import
org.springframework.boot.context.properties.bind.Bindable
;
import
org.springframework.boot.context.properties.bind.Binder
;
...
...
@@ -49,14 +46,6 @@ public class PropertiesMeterFilterTests {
@Rule
public
ExpectedException
thrown
=
ExpectedException
.
none
();
@Mock
private
DistributionStatisticConfig
config
;
@Before
public
void
setup
()
{
MockitoAnnotations
.
initMocks
(
this
);
}
@Test
public
void
createWhenPropertiesIsNullShouldThrowException
()
{
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryCustomizerTests.java
View file @
55ec016b
...
...
@@ -24,8 +24,6 @@ import java.util.Map;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.mockito.ArgumentCaptor
;
import
org.mockito.Captor
;
import
org.mockito.MockitoAnnotations
;
import
org.springframework.boot.autoconfigure.web.ServerProperties
;
import
org.springframework.boot.context.properties.bind.Bindable
;
...
...
@@ -33,7 +31,6 @@ import org.springframework.boot.context.properties.bind.Binder;
import
org.springframework.boot.context.properties.source.ConfigurationPropertySource
;
import
org.springframework.boot.context.properties.source.MapConfigurationPropertySource
;
import
org.springframework.boot.web.server.Ssl
;
import
org.springframework.boot.web.servlet.ServletContextInitializer
;
import
org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory
;
import
org.springframework.boot.web.servlet.server.Jsp
;
import
org.springframework.boot.web.servlet.server.Session
;
...
...
@@ -56,12 +53,8 @@ public class ServletWebServerFactoryCustomizerTests {
private
ServletWebServerFactoryCustomizer
customizer
;
@Captor
private
ArgumentCaptor
<
ServletContextInitializer
[]>
initializersCaptor
;
@Before
public
void
setup
()
{
MockitoAnnotations
.
initMocks
(
this
);
this
.
customizer
=
new
ServletWebServerFactoryCustomizer
(
this
.
properties
);
}
...
...
spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/CommandRunnerTests.java
View file @
55ec016b
...
...
@@ -51,9 +51,6 @@ public class CommandRunnerTests {
@Mock
private
Command
regularCommand
;
@Mock
private
Command
shellCommand
;
@Mock
private
Command
anotherCommand
;
...
...
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