@@ -132,6 +132,7 @@ public class BigQueryImplTest {
132
132
.setField ("timestampField" );
133
133
private static final TimePartitioning TIME_PARTITIONING_NULL_TYPE =
134
134
TimePartitioning .fromPb (PB_TIMEPARTITIONING );
135
+ private static final ImmutableMap <String , String > LABELS = ImmutableMap .of ("key" , "value" );
135
136
private static final StandardTableDefinition TABLE_DEFINITION_WITH_PARTITIONING =
136
137
StandardTableDefinition .newBuilder ()
137
138
.setSchema (TABLE_SCHEMA )
@@ -156,7 +157,7 @@ public class BigQueryImplTest {
156
157
private static final TableInfo TABLE_INFO = TableInfo .of (TABLE_ID , TABLE_DEFINITION );
157
158
private static final TableInfo OTHER_TABLE_INFO = TableInfo .of (OTHER_TABLE_ID , TABLE_DEFINITION );
158
159
private static final TableInfo OTHER_TABLE_WITH_LABELS_INFO = TableInfo .newBuilder (OTHER_TABLE_ID , TABLE_DEFINITION )
159
- .setLabels (ImmutableMap . of ( "key" , "value" ) )
160
+ .setLabels (LABELS )
160
161
.build ();
161
162
private static final TableInfo TABLE_INFO_WITH_PROJECT =
162
163
TableInfo .of (TABLE_ID_WITH_PROJECT , TABLE_DEFINITION );
@@ -1168,7 +1169,7 @@ public void testListTablesWithLabels() throws IOException {
1168
1169
assertEquals (CURSOR , page .getNextPageToken ());
1169
1170
assertArrayEquals (tableList .toArray (), Iterables .toArray (page .getValues (), Table .class ));
1170
1171
verify (bigqueryRpcMock ).listTablesSkipExceptionTranslation (PROJECT , DATASET , EMPTY_RPC_OPTIONS );
1171
- assertEquals (ImmutableMap . of ( "key" , "value" ) , page .getValues ().iterator ().next ().getLabels ());
1172
+ assertEquals (LABELS , page .getValues ().iterator ().next ().getLabels ());
1172
1173
}
1173
1174
1174
1175
@ Test
0 commit comments