|
|
@ -16,19 +16,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.actuate.autoconfigure;
|
|
|
|
package org.springframework.boot.actuate.autoconfigure;
|
|
|
|
|
|
|
|
|
|
|
|
import static org.hamcrest.Matchers.equalTo;
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertThat;
|
|
|
|
|
|
|
|
import static org.mockito.BDDMockito.willAnswer;
|
|
|
|
|
|
|
|
import static org.mockito.BDDMockito.willThrow;
|
|
|
|
|
|
|
|
import static org.mockito.Matchers.anyDouble;
|
|
|
|
|
|
|
|
import static org.mockito.Matchers.anyString;
|
|
|
|
|
|
|
|
import static org.mockito.Matchers.eq;
|
|
|
|
|
|
|
|
import static org.mockito.Mockito.mock;
|
|
|
|
|
|
|
|
import static org.mockito.Mockito.times;
|
|
|
|
|
|
|
|
import static org.mockito.Mockito.verify;
|
|
|
|
|
|
|
|
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
|
|
|
|
|
|
|
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.Filter;
|
|
|
|
import javax.servlet.Filter;
|
|
|
@ -60,6 +47,19 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.filter.OncePerRequestFilter;
|
|
|
|
import org.springframework.web.filter.OncePerRequestFilter;
|
|
|
|
import org.springframework.web.util.NestedServletException;
|
|
|
|
import org.springframework.web.util.NestedServletException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static org.hamcrest.Matchers.equalTo;
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertThat;
|
|
|
|
|
|
|
|
import static org.mockito.BDDMockito.willAnswer;
|
|
|
|
|
|
|
|
import static org.mockito.BDDMockito.willThrow;
|
|
|
|
|
|
|
|
import static org.mockito.Matchers.anyDouble;
|
|
|
|
|
|
|
|
import static org.mockito.Matchers.anyString;
|
|
|
|
|
|
|
|
import static org.mockito.Matchers.eq;
|
|
|
|
|
|
|
|
import static org.mockito.Mockito.mock;
|
|
|
|
|
|
|
|
import static org.mockito.Mockito.times;
|
|
|
|
|
|
|
|
import static org.mockito.Mockito.verify;
|
|
|
|
|
|
|
|
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
|
|
|
|
|
|
|
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Tests for {@link MetricFilterAutoConfiguration}.
|
|
|
|
* Tests for {@link MetricFilterAutoConfiguration}.
|
|
|
|
*
|
|
|
|
*
|
|
|
|