File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
java-bigquery/google-cloud-bigquery/src
main/java/com/google/cloud/bigquery/telemetry
test/java/com/google/cloud/bigquery/it Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 2222 * replaced with gax version when ready work tracked in
2323 * https://github.com/googleapis/google-cloud-java/issues/12105
2424 */
25- @ VisibleForTesting
26- public class ErrorTypeUtil {
25+ class ErrorTypeUtil {
2726
28- @ VisibleForTesting
29- public enum ErrorType {
27+ enum ErrorType {
3028 CLIENT_TIMEOUT ,
3129 CLIENT_CONNECTION_ERROR ,
3230 CLIENT_REQUEST_ERROR ,
Original file line number Diff line number Diff line change 1515 */
1616package com .google .cloud .bigquery .it ;
1717
18- import static com .google .cloud .bigquery .telemetry .ErrorTypeUtil .ErrorType ;
1918import static org .junit .jupiter .api .Assertions .assertEquals ;
2019import static org .junit .jupiter .api .Assertions .assertFalse ;
2120import static org .junit .jupiter .api .Assertions .assertNotNull ;
@@ -215,7 +214,7 @@ public void testClientErrorAndRetriesTraced() {
215214 assertEquals (
216215 "java.net.UnknownHostException" , attrs .get (BigQueryTelemetryTracer .EXCEPTION_TYPE ));
217216 assertEquals (
218- ErrorType . CLIENT_CONNECTION_ERROR . toString () ,
217+ " CLIENT_CONNECTION_ERROR" ,
219218 attrs .get (BigQueryTelemetryTracer .ERROR_TYPE ));
220219 assertEquals (
221220 "UnknownHostException: invalid-host-name-12345.com" ,
You can’t perform that action at this time.
0 commit comments