3636import com .google .cloud .bigquery .storage .test .Test .RepetitionType ;
3737import com .google .cloud .bigquery .storage .test .Test .UpdatedFooType ;
3838import com .google .cloud .bigquery .storage .v1 .ConnectionWorkerPool .Settings ;
39- import com .google .cloud .bigquery .storage .v1 .Exceptions .AppendSerializtionError ;
39+ import com .google .cloud .bigquery .storage .v1 .Exceptions .AppendSerializationError ;
4040import com .google .cloud .bigquery .storage .v1 .TableFieldSchema .Mode ;
4141import com .google .protobuf .ByteString ;
4242import com .google .protobuf .Descriptors .DescriptorValidationException ;
@@ -1096,7 +1096,7 @@ public void testWithoutIgnoreUnknownFieldsUpdateFail() throws Exception {
10961096 try {
10971097 ApiFuture <AppendRowsResponse > appendFuture = writer .append (jsonArr );
10981098 Assert .fail ("expected ExecutionException" );
1099- } catch (AppendSerializtionError ex ) {
1099+ } catch (AppendSerializationError ex ) {
11001100 assertEquals (
11011101 "JSONObject has fields unknown to BigQuery: root.test_unknown." ,
11021102 ex .getRowIndexToErrorMessage ().get (1 ));
@@ -1188,7 +1188,7 @@ public void testFlowControlSettingNoLimitBehavior() throws Exception {
11881188 }
11891189
11901190 @ Test
1191- public void testMultipleAppendSerializtionErrors ()
1191+ public void testMultipleAppendSerializationErrors ()
11921192 throws DescriptorValidationException , IOException , InterruptedException {
11931193 FooType expectedProto = FooType .newBuilder ().setFoo ("allen" ).build ();
11941194 JSONObject foo = new JSONObject ();
@@ -1213,10 +1213,10 @@ public void testMultipleAppendSerializtionErrors()
12131213 getTestJsonStreamWriterBuilder (TEST_STREAM , TABLE_SCHEMA ).build ()) {
12141214 try {
12151215 ApiFuture <AppendRowsResponse > appendFuture = writer .append (jsonArr );
1216- Assert .fail ("expected AppendSerializtionError " );
1217- } catch (AppendSerializtionError appendSerializtionError ) {
1216+ Assert .fail ("expected AppendSerializationError " );
1217+ } catch (AppendSerializationError appendSerializationError ) {
12181218 Map <Integer , String > rowIndexToErrorMessage =
1219- appendSerializtionError .getRowIndexToErrorMessage ();
1219+ appendSerializationError .getRowIndexToErrorMessage ();
12201220 assertEquals (2 , rowIndexToErrorMessage .size ());
12211221 assertEquals (
12221222 "JSONObject has fields unknown to BigQuery: root.not_foo." ,
@@ -1253,10 +1253,10 @@ public void testBadStringToNumericRowError()
12531253 getTestJsonStreamWriterBuilder (TEST_STREAM , TABLE_SCHEMA ).build ()) {
12541254 try {
12551255 ApiFuture <AppendRowsResponse > appendFuture = writer .append (jsonArr );
1256- Assert .fail ("expected AppendSerializtionError " );
1257- } catch (AppendSerializtionError appendSerializtionError ) {
1256+ Assert .fail ("expected AppendSerializationError " );
1257+ } catch (AppendSerializationError appendSerializationError ) {
12581258 Map <Integer , String > rowIndexToErrorMessage =
1259- appendSerializtionError .getRowIndexToErrorMessage ();
1259+ appendSerializationError .getRowIndexToErrorMessage ();
12601260 assertEquals (1 , rowIndexToErrorMessage .size ());
12611261 assertTrue (
12621262 rowIndexToErrorMessage
0 commit comments