Пример #1
0
 @Test
 public void testGetBucketEmptyFields() {
   BucketInfo remoteBucket = storage.get(BUCKET, Storage.BucketGetOption.fields());
   assertEquals(BUCKET, remoteBucket.name());
   assertNull(remoteBucket.createTime());
   assertNull(remoteBucket.selfLink());
 }
Пример #2
0
 @Test
 public void testGetBucketSelectedFields() {
   BucketInfo remoteBucket = storage.get(BUCKET, Storage.BucketGetOption.fields(BucketField.ID));
   assertEquals(BUCKET, remoteBucket.name());
   assertNull(remoteBucket.createTime());
   assertNotNull(remoteBucket.id());
 }