File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed
google-api-client/src/test/java/com/google/api/client/googleapis Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -273,16 +273,6 @@ public boolean handleResponse(
273
273
}
274
274
}
275
275
276
- @ Deprecated
277
- private static class MockExponentialBackOffPolicy extends ExponentialBackOffPolicy {
278
- public MockExponentialBackOffPolicy () {}
279
-
280
- @ Override
281
- public long getNextBackOffMillis () {
282
- return 0 ;
283
- }
284
- }
285
-
286
276
private static class MockTransport extends MockHttpTransport {
287
277
288
278
final boolean testServerError ;
Original file line number Diff line number Diff line change 17
17
import com .google .api .client .http .HttpTransport ;
18
18
import com .google .api .client .http .javanet .NetHttpTransport ;
19
19
import com .google .api .client .json .JsonFactory ;
20
- import java .io .IOException ;
21
- import java .net .URLDecoder ;
22
- import java .util .HashMap ;
23
- import java .util .Map ;
24
20
import junit .framework .TestCase ;
25
21
26
22
/**
@@ -44,19 +40,4 @@ public void testGetDefaultTransport() {
44
40
HttpTransport secondCall = Utils .getDefaultTransport ();
45
41
assertSame (transport , secondCall );
46
42
}
47
-
48
- public static Map <String , String > parseQuery (String query ) throws IOException {
49
- Map <String , String > map = new HashMap <String , String >();
50
- String [] entries = query .split ("&" );
51
- for (String entry : entries ) {
52
- String [] sides = entry .split ("=" );
53
- if (sides .length != 2 ) {
54
- throw new IOException ("Invalid Query String" );
55
- }
56
- String key = URLDecoder .decode (sides [0 ], "UTF-8" );
57
- String value = URLDecoder .decode (sides [1 ], "UTF-8" );
58
- map .put (key , value );
59
- }
60
- return map ;
61
- }
62
43
}
You can’t perform that action at this time.
0 commit comments