File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
google-cloud-bigtable/src/test/java/com/google/cloud/bigtable Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 4343import com .google .cloud .bigtable .test_helpers .env .EmulatorEnv ;
4444import com .google .cloud .bigtable .test_helpers .env .TestEnvRule ;
4545import com .google .common .collect .Lists ;
46- import com .google .protobuf .Timestamp ;
46+ import com .google .protobuf .ByteString ;
4747import io .grpc .StatusRuntimeException ;
4848import java .io .IOException ;
4949import java .util .List ;
@@ -119,7 +119,7 @@ public static void createClient()
119119 ApiFuture <Void > future =
120120 dataClient .mutateRowAsync (
121121 RowMutation .create (testTable .getId (), "test-row-" + i )
122- .setCell ("cf1" , "" , rowBytes . toString ( )));
122+ .setCell ("cf1" , ByteString . EMPTY , ByteString . copyFrom ( rowBytes )));
123123 futures .add (future );
124124 }
125125 ApiFutures .allAsList (futures ).get (3 , TimeUnit .MINUTES );
@@ -188,7 +188,7 @@ public void createAndGetBackupTest() throws InterruptedException {
188188 .isEqualTo (expireTime );
189189 assertWithMessage ("Got empty start time in GetBackup API" )
190190 .that (result .getStartTime ())
191- .isNotEqualTo ( Timestamp . getDefaultInstance () );
191+ .isNotNull ( );
192192 assertWithMessage ("Got wrong size bytes in GetBackup API" )
193193 .that (result .getSizeBytes ())
194194 .isEqualTo (0L );
Original file line number Diff line number Diff line change 1919
2020import com .google .cloud .bigtable .data .v2 .stub .EnhancedBigtableStubSettings ;
2121import org .junit .Test ;
22+ import org .junit .runner .RunWith ;
23+ import org .junit .runners .JUnit4 ;
2224
25+ @ RunWith (JUnit4 .class )
2326public class BigtableDataSettingsTest {
2427
2528 @ Test
You can’t perform that action at this time.
0 commit comments