Remove unnecessary semicolons
This commit is contained in:
parent
8a7336a017
commit
0eab4688cd
|
@ -10,11 +10,11 @@ import spock.lang.Shared
|
||||||
abstract class AbstractGoogleHttpClientTest extends HttpClientTest<GoogleHttpClientDecorator> {
|
abstract class AbstractGoogleHttpClientTest extends HttpClientTest<GoogleHttpClientDecorator> {
|
||||||
|
|
||||||
@Shared
|
@Shared
|
||||||
def requestFactory = new NetHttpTransport().createRequestFactory();
|
def requestFactory = new NetHttpTransport().createRequestFactory()
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
int doRequest(String method, URI uri, Map<String, String> headers, Closure callback) {
|
int doRequest(String method, URI uri, Map<String, String> headers, Closure callback) {
|
||||||
doRequest(method, uri, headers, callback, false);
|
doRequest(method, uri, headers, callback, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
int doRequest(String method, URI uri, Map<String, String> headers, Closure callback, boolean throwExceptionOnError) {
|
int doRequest(String method, URI uri, Map<String, String> headers, Closure callback, boolean throwExceptionOnError) {
|
||||||
|
@ -24,13 +24,13 @@ abstract class AbstractGoogleHttpClientTest extends HttpClientTest<GoogleHttpCli
|
||||||
request.getHeaders().putAll(headers)
|
request.getHeaders().putAll(headers)
|
||||||
request.setThrowExceptionOnExecuteError(throwExceptionOnError)
|
request.setThrowExceptionOnExecuteError(throwExceptionOnError)
|
||||||
|
|
||||||
HttpResponse response = executeRequest(request);
|
HttpResponse response = executeRequest(request)
|
||||||
callback?.call()
|
callback?.call()
|
||||||
|
|
||||||
return response.getStatusCode()
|
return response.getStatusCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract HttpResponse executeRequest(HttpRequest request);
|
abstract HttpResponse executeRequest(HttpRequest request)
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
GoogleHttpClientDecorator decorator() {
|
GoogleHttpClientDecorator decorator() {
|
||||||
|
|
|
@ -4,6 +4,6 @@ import com.google.api.client.http.HttpResponse
|
||||||
class GoogleHttpClientTest extends AbstractGoogleHttpClientTest {
|
class GoogleHttpClientTest extends AbstractGoogleHttpClientTest {
|
||||||
@Override
|
@Override
|
||||||
HttpResponse executeRequest(HttpRequest request) {
|
HttpResponse executeRequest(HttpRequest request) {
|
||||||
return request.execute();
|
return request.execute()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue