Commit 7da33965 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge branch '2.0.x'

parents 5ef9b0f9 86004897
...@@ -24,10 +24,7 @@ import io.micrometer.core.instrument.Meter.Type; ...@@ -24,10 +24,7 @@ import io.micrometer.core.instrument.Meter.Type;
import io.micrometer.core.instrument.config.MeterFilterReply; import io.micrometer.core.instrument.config.MeterFilterReply;
import io.micrometer.core.instrument.distribution.DistributionStatisticConfig; import io.micrometer.core.instrument.distribution.DistributionStatisticConfig;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry; import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.boot.context.properties.bind.Bindable; import org.springframework.boot.context.properties.bind.Bindable;
import org.springframework.boot.context.properties.bind.Binder; import org.springframework.boot.context.properties.bind.Binder;
...@@ -46,14 +43,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException ...@@ -46,14 +43,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
*/ */
public class PropertiesMeterFilterTests { public class PropertiesMeterFilterTests {
@Mock
private DistributionStatisticConfig config;
@Before
public void setup() {
MockitoAnnotations.initMocks(this);
}
@Test @Test
public void createWhenPropertiesIsNullShouldThrowException() { public void createWhenPropertiesIsNullShouldThrowException() {
assertThatIllegalArgumentException() assertThatIllegalArgumentException()
......
...@@ -24,8 +24,6 @@ import java.util.Map; ...@@ -24,8 +24,6 @@ import java.util.Map;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.mockito.ArgumentCaptor; import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.MockitoAnnotations;
import org.springframework.boot.autoconfigure.web.ServerProperties; import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.boot.context.properties.bind.Bindable; import org.springframework.boot.context.properties.bind.Bindable;
...@@ -33,7 +31,6 @@ import org.springframework.boot.context.properties.bind.Binder; ...@@ -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.ConfigurationPropertySource;
import org.springframework.boot.context.properties.source.MapConfigurationPropertySource; import org.springframework.boot.context.properties.source.MapConfigurationPropertySource;
import org.springframework.boot.web.server.Ssl; 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.ConfigurableServletWebServerFactory;
import org.springframework.boot.web.servlet.server.Jsp; import org.springframework.boot.web.servlet.server.Jsp;
import org.springframework.boot.web.servlet.server.Session; import org.springframework.boot.web.servlet.server.Session;
...@@ -56,12 +53,8 @@ public class ServletWebServerFactoryCustomizerTests { ...@@ -56,12 +53,8 @@ public class ServletWebServerFactoryCustomizerTests {
private ServletWebServerFactoryCustomizer customizer; private ServletWebServerFactoryCustomizer customizer;
@Captor
private ArgumentCaptor<ServletContextInitializer[]> initializersCaptor;
@Before @Before
public void setup() { public void setup() {
MockitoAnnotations.initMocks(this);
this.customizer = new ServletWebServerFactoryCustomizer(this.properties); this.customizer = new ServletWebServerFactoryCustomizer(this.properties);
} }
......
...@@ -47,9 +47,6 @@ public class CommandRunnerTests { ...@@ -47,9 +47,6 @@ public class CommandRunnerTests {
@Mock @Mock
private Command regularCommand; private Command regularCommand;
@Mock
private Command shellCommand;
@Mock @Mock
private Command anotherCommand; private Command anotherCommand;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment