Searched refs:readErrorFromConnection (Results 1 – 2 of 2) sorted by relevance
280 assertThat(ServerInterface.readErrorFromConnection(connection)) in testReadErrorInvalidContentType()293 assertThat(ServerInterface.readErrorFromConnection(connection)).isEqualTo(expectedError); in testReadTextErrorFromErrorStreamNoErrorData()306 assertThat(ServerInterface.readErrorFromConnection(connection)).isEqualTo(error); in testReadTextErrorFromErrorStream()329 .isEqualTo(ServerInterface.readErrorFromConnection(connection)); in testReadTextError()342 assertThat(ServerInterface.readErrorFromConnection(connection)).isEqualTo(error); in testReadJsonError()354 final String error = ServerInterface.readErrorFromConnection(connection); in testReadErrorStreamThrowsException()366 assertThat(ServerInterface.readErrorFromConnection(connection)) in testReadErrorEmptyStream()384 assertThat(ServerInterface.readErrorFromConnection(connection)).isEqualTo(sb.toString()); in testReadErrorStreamTooLarge()
331 public static String readErrorFromConnection(HttpURLConnection con) { in readErrorFromConnection() method in ServerInterface486 Log.e(TAG, readErrorFromConnection(con)); in requestData()