Skip to content

Commit 2bf5470

Browse files
committed
test: move ErroTypeUtilTest to correct package
1 parent b80757b commit 2bf5470

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/rpc/ErrorTypeUtilTest.java renamed to sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/tracing/ErrorTypeUtilTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2828
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*/
30-
package com.google.api.gax.rpc;
30+
package com.google.api.gax.tracing;
3131

3232
import static com.google.common.truth.Truth.assertThat;
3333

34+
import com.google.api.gax.rpc.ApiException;
35+
import com.google.api.gax.rpc.DeadlineExceededException;
36+
import com.google.api.gax.rpc.StatusCode;
3437
import com.google.api.gax.rpc.testing.FakeStatusCode;
35-
import com.google.api.gax.tracing.ErrorTypeUtil;
3638
import java.io.IOException;
3739
import java.net.BindException;
3840
import java.net.ConnectException;
@@ -133,8 +135,6 @@ void testExtractErrorType_realBindException() throws Exception {
133135

134136
@Test
135137
void testExtractErrorType_clientTimeout_others() {
136-
assertThat(ErrorTypeUtil.extractErrorType(new WatchdogTimeoutException("timeout", false)))
137-
.isEqualTo(ErrorTypeUtil.ErrorType.CLIENT_TIMEOUT.toString());
138138
assertThat(
139139
ErrorTypeUtil.extractErrorType(
140140
new DeadlineExceededException(

0 commit comments

Comments
 (0)