From ec008ec4a9c2be440e6aaf5c89f523f5c6edbb93 Mon Sep 17 00:00:00 2001 From: Chris Earle Date: Mon, 5 Sep 2016 19:05:28 -0400 Subject: [PATCH] Looong lines Original commit: elastic/x-pack-elasticsearch@8c7931c179441643c6df7307cdd463e650315edc --- .../http/AbstractPublishableHttpResourceTestCase.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/elasticsearch/x-pack/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/AbstractPublishableHttpResourceTestCase.java b/elasticsearch/x-pack/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/AbstractPublishableHttpResourceTestCase.java index d2bf632d1d3..11144671ac3 100644 --- a/elasticsearch/x-pack/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/AbstractPublishableHttpResourceTestCase.java +++ b/elasticsearch/x-pack/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/AbstractPublishableHttpResourceTestCase.java @@ -72,7 +72,8 @@ public abstract class AbstractPublishableHttpResourceTestCase extends ESTestCase * @param resourceBasePath The base endpoint (e.g., "/_template") * @param resourceName The resource name (e.g., the template or pipeline name). */ - protected void assertCheckWithException(final PublishableHttpResource resource, final String resourceBasePath, final String resourceName) + protected void assertCheckWithException(final PublishableHttpResource resource, + final String resourceBasePath, final String resourceName) throws IOException { final String endpoint = concatenateEndpoint(resourceBasePath, resourceName); final ResponseException responseException = responseException("GET", endpoint, failedCheckStatus()); @@ -114,14 +115,15 @@ public abstract class AbstractPublishableHttpResourceTestCase extends ESTestCase } /** - * Perform {@link PublishableHttpResource#doPublish(RestClient) doPublish} against the {@code resource} that throws an exception and assert - * that it returns {@code false}. + * Perform {@link PublishableHttpResource#doPublish(RestClient) doPublish} against the {@code resource} that throws an exception and + * assert that it returns {@code false}. * * @param resource The resource to execute. * @param resourceBasePath The base endpoint (e.g., "/_template") * @param resourceName The resource name (e.g., the template or pipeline name). */ - protected void assertPublishWithException(final PublishableHttpResource resource, final String resourceBasePath, final String resourceName, + protected void assertPublishWithException(final PublishableHttpResource resource, + final String resourceBasePath, final String resourceName, final Class bodyType) throws IOException { final String endpoint = concatenateEndpoint(resourceBasePath, resourceName);