コード例 #1
0
 @AfterClass
 public static void afterClass()
     throws ExecutionException, TimeoutException, InterruptedException {
   if (storage != null && !RemoteGcsHelper.forceDelete(storage, BUCKET, 5, TimeUnit.SECONDS)) {
     if (log.isLoggable(Level.WARNING)) {
       log.log(Level.WARNING, "Deletion of bucket {0} timed out, bucket is not empty", BUCKET);
     }
   }
 }
コード例 #2
0
ファイル: ITBigQueryTest.java プロジェクト: jart/gcloud-java
 @AfterClass
 public static void afterClass() throws ExecutionException, InterruptedException {
   if (bigquery != null) {
     RemoteBigQueryHelper.forceDelete(bigquery, DATASET);
   }
   if (storage != null) {
     boolean wasDeleted = RemoteGcsHelper.forceDelete(storage, BUCKET, 10, TimeUnit.SECONDS);
     if (!wasDeleted && LOG.isLoggable(Level.WARNING)) {
       LOG.log(Level.WARNING, "Deletion of bucket {0} timed out, bucket is not empty", BUCKET);
     }
   }
 }