File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
google-http-client/src/test/java/com/google/api/client/http Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,16 @@ public void testNotSupportedByDefault() throws Exception {
85
85
}
86
86
for (String method : OTHER_METHODS ) {
87
87
transport =
88
- MockHttpTransport .builder ().setSupportedMethods (ImmutableSet .<String >of ()).build ();
88
+ new MockHttpTransport .Builder ().setSupportedMethods (ImmutableSet .<String >of ()).build ();
89
89
request = transport .createRequestFactory ().buildGetRequest (HttpTesting .SIMPLE_GENERIC_URL );
90
90
request .setRequestMethod (method );
91
91
try {
92
92
request .execute ();
93
93
fail ("expected IllegalArgumentException" );
94
94
} catch (IllegalArgumentException e ) {
95
95
}
96
- transport = MockHttpTransport .builder ().setSupportedMethods (ImmutableSet .of (method )).build ();
96
+ transport =
97
+ new MockHttpTransport .Builder ().setSupportedMethods (ImmutableSet .of (method )).build ();
97
98
request = transport .createRequestFactory ().buildGetRequest (HttpTesting .SIMPLE_GENERIC_URL );
98
99
request .setRequestMethod (method );
99
100
request .execute ();
You can’t perform that action at this time.
0 commit comments