Looong lines

Original commit: elastic/x-pack-elasticsearch@8c7931c179
This commit is contained in:
Chris Earle 2016-09-05 19:05:28 -04:00
parent 5d5a9afb57
commit ec008ec4a9
1 changed files with 6 additions and 4 deletions

View File

@ -72,7 +72,8 @@ public abstract class AbstractPublishableHttpResourceTestCase extends ESTestCase
* @param resourceBasePath The base endpoint (e.g., "/_template") * @param resourceBasePath The base endpoint (e.g., "/_template")
* @param resourceName The resource name (e.g., the template or pipeline name). * @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 { throws IOException {
final String endpoint = concatenateEndpoint(resourceBasePath, resourceName); final String endpoint = concatenateEndpoint(resourceBasePath, resourceName);
final ResponseException responseException = responseException("GET", endpoint, failedCheckStatus()); 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 * Perform {@link PublishableHttpResource#doPublish(RestClient) doPublish} against the {@code resource} that throws an exception and
* that it returns {@code false}. * assert that it returns {@code false}.
* *
* @param resource The resource to execute. * @param resource The resource to execute.
* @param resourceBasePath The base endpoint (e.g., "/_template") * @param resourceBasePath The base endpoint (e.g., "/_template")
* @param resourceName The resource name (e.g., the template or pipeline name). * @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<? extends HttpEntity> bodyType) final Class<? extends HttpEntity> bodyType)
throws IOException { throws IOException {
final String endpoint = concatenateEndpoint(resourceBasePath, resourceName); final String endpoint = concatenateEndpoint(resourceBasePath, resourceName);