Searched refs:mMockConnection (Results 1 – 2 of 2) sorted by relevance
51 @Mock private HttpURLConnection mMockConnection; field in HurlStackTest57 when(mMockConnection.getOutputStream()).thenReturn(new ByteArrayOutputStream()); in setUp()63 return mMockConnection; in setUp()73 HurlStack.setConnectionParametersForRequest(mMockConnection, request); in connectionForDeprecatedGetRequest()74 verify(mMockConnection, never()).setRequestMethod(anyString()); in connectionForDeprecatedGetRequest()75 verify(mMockConnection, never()).setDoOutput(true); in connectionForDeprecatedGetRequest()83 HurlStack.setConnectionParametersForRequest(mMockConnection, request); in connectionForDeprecatedPostRequest()84 verify(mMockConnection).setRequestMethod("POST"); in connectionForDeprecatedPostRequest()85 verify(mMockConnection).setDoOutput(true); in connectionForDeprecatedPostRequest()93 HurlStack.setConnectionParametersForRequest(mMockConnection, request); in connectionForGetRequest()[all …]
42 @Mock private HttpURLConnection mMockConnection; field in HttpStackConformanceTest70 .when(mMockConnection)88 .when(mMockConnection)137 doReturn(mMockConnection).when(mHurlStack).createConnection(any(URL.class)); in setUp()138 doReturn(mMockOutputStream).when(mMockConnection).getOutputStream(); in setUp()