Browse Source

Merge branch '2.0.x'

pull/14712/head
Stephane Nicoll 7 years ago
parent
commit
7da3396555
  1. 11
      spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/PropertiesMeterFilterTests.java
  2. 7
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryCustomizerTests.java
  3. 3
      spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/CommandRunnerTests.java

11
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/PropertiesMeterFilterTests.java

@ -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.distribution.DistributionStatisticConfig;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
import org.junit.Before;
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.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 {
@Mock
private DistributionStatisticConfig config;
@Before
public void setup() {
MockitoAnnotations.initMocks(this);
}
@Test
public void createWhenPropertiesIsNullShouldThrowException() {
assertThatIllegalArgumentException()

7
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryCustomizerTests.java

@ -24,8 +24,6 @@ import java.util.Map; @@ -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; @@ -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 { @@ -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);
}

3
spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/CommandRunnerTests.java

@ -47,9 +47,6 @@ public class CommandRunnerTests { @@ -47,9 +47,6 @@ public class CommandRunnerTests {
@Mock
private Command regularCommand;
@Mock
private Command shellCommand;
@Mock
private Command anotherCommand;

Loading…
Cancel
Save