Commit 72f1ce90 by Ryan Baxter

added logging to test

parent 0abf69dc
......@@ -18,6 +18,7 @@
package org.springframework.cloud.netflix.zuul.filters.route.support;
import java.util.logging.Logger;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Value;
......@@ -47,6 +48,8 @@ import static org.junit.Assert.assertEquals;
*/
public abstract class RibbonRetryIntegrationTestBase {
private final Logger LOG = Logger.getLogger(RibbonRetryIntegrationTestBase.class.getName());
@Value("${local.server.port}")
protected int port;
......@@ -101,6 +104,7 @@ public abstract class RibbonRetryIntegrationTestBase {
ResponseEntity<String> result = new TestRestTemplate().exchange(
"http://localhost:" + this.port + uri, HttpMethod.GET,
new HttpEntity<>((Void) null), String.class);
LOG.info("Response Body: " + result.getBody());
assertEquals(HttpStatus.INTERNAL_SERVER_ERROR, result.getStatusCode());
}
......@@ -110,6 +114,7 @@ public abstract class RibbonRetryIntegrationTestBase {
ResponseEntity<String> result = new TestRestTemplate().exchange(
"http://localhost:" + this.port + uri, HttpMethod.GET,
new HttpEntity<>((Void) null), String.class);
LOG.info("Response Body: " + result.getBody());
assertEquals(HttpStatus.INTERNAL_SERVER_ERROR, result.getStatusCode());
}
......
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