pull/3332/merge
Phillip Webb 10 years ago
parent 4f072f4046
commit b68382f3ba

@ -107,6 +107,7 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping impleme
} }
@Override @Override
@Deprecated
protected void registerHandlerMethod(Object handler, Method method, protected void registerHandlerMethod(Object handler, Method method,
RequestMappingInfo mapping) { RequestMappingInfo mapping) {
if (mapping == null) { if (mapping == null) {

@ -205,4 +205,5 @@ public class HealthMvcEndpointTests {
Health health = ((ResponseEntity<Health>) result).getBody(); Health health = ((ResponseEntity<Health>) result).getBody();
assertTrue(health.getStatus() == Status.DOWN); assertTrue(health.getStatus() == Status.DOWN);
} }
} }

@ -37,7 +37,7 @@ public class IntegrationTestPropertiesListener extends AbstractTestExecutionList
public void prepareTestInstance(TestContext testContext) throws Exception { public void prepareTestInstance(TestContext testContext) throws Exception {
Class<?> testClass = testContext.getTestClass(); Class<?> testClass = testContext.getTestClass();
AnnotationAttributes annotationAttributes = AnnotatedElementUtils AnnotationAttributes annotationAttributes = AnnotatedElementUtils
.getAnnotationAttributes(testClass, IntegrationTest.class.getName()); .getMergedAnnotationAttributes(testClass, IntegrationTest.class.getName());
if (annotationAttributes != null) { if (annotationAttributes != null) {
addPropertySourceProperties(testContext, addPropertySourceProperties(testContext,
annotationAttributes.getStringArray("value")); annotationAttributes.getStringArray("value"));

@ -23,11 +23,6 @@ import org.springframework.boot.ansi.AnsiOutput.Enabled;
import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.springframework.boot.ansi.AnsiElement.BOLD;
import static org.springframework.boot.ansi.AnsiElement.FAINT;
import static org.springframework.boot.ansi.AnsiElement.GREEN;
import static org.springframework.boot.ansi.AnsiElement.NORMAL;
import static org.springframework.boot.ansi.AnsiElement.RED;
/** /**
* Tests for {@link AnsiOutput}. * Tests for {@link AnsiOutput}.
@ -48,8 +43,8 @@ public class AnsiOutputTests {
@Test @Test
public void encoding() throws Exception { public void encoding() throws Exception {
String encoded = AnsiOutput.toString("A", RED, BOLD, "B", NORMAL, "D", GREEN, String encoded = AnsiOutput.toString("A", AnsiColor.RED, AnsiStyle.BOLD, "B",
"E", FAINT, "F"); AnsiStyle.NORMAL, "D", AnsiColor.GREEN, "E", AnsiStyle.FAINT, "F");
assertThat(encoded, equalTo("ABDEF")); assertThat(encoded, equalTo("ABDEF"));
} }

@ -37,9 +37,9 @@ import javax.servlet.ServletResponse;
import org.apache.http.client.HttpClient; import org.apache.http.client.HttpClient;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory; import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.conn.ssl.SSLContextBuilder;
import org.apache.http.conn.ssl.TrustSelfSignedStrategy; import org.apache.http.conn.ssl.TrustSelfSignedStrategy;
import org.apache.http.impl.client.HttpClients; import org.apache.http.impl.client.HttpClients;
import org.apache.http.ssl.SSLContextBuilder;
import org.junit.After; import org.junit.After;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;

Loading…
Cancel
Save