8000 http: Fix warnings in test code. · braraujo/google-http-java-client@f2f885d · GitHub
[go: up one dir, main page]

Skip to content

Commit f2f885d

Browse files
committed
http: Fix warnings in test code.
https://codereview.appspot.com/80180043/
1 parent f72b850 commit f2f885d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,16 @@ public void testNotSupportedByDefault() throws Exception {
8585
}
8686
for (String method : OTHER_METHODS) {
8787
transport =
88-
MockHttpTransport.builder().setSupportedMethods(ImmutableSet.<String>of()).build();
88+
new MockHttpTransport.Builder().setSupportedMethods(ImmutableSet.<String>of()).build();
8989
request = transport.createRequestFactory().buildGetRequest(HttpTesting.SIMPLE_GENERIC_URL);
9090
request.setRequestMethod(method);
9191
try {
9292
request.execute();
9393
fail("expected IllegalArgumentException");
9494
} catch (IllegalArgumentException e) {
9595
}
96-
transport = MockHttpTransport.builder().setSupportedMethods(ImmutableSet.of(method)).build();
96+
transport =
97+
new MockHttpTransport.Builder().setSupportedMethods(ImmutableSet.of(method)).build();
9798
request = transport.createRequestFactory().buildGetRequest(HttpTesting.SIMPLE_GENERIC_URL);
9899
request.setRequestMethod(method);
99100
request.execute();

0 commit comments

Comments
 (0)
0