Ejemplo n.º 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);
     }
   }
 }
Ejemplo n.º 2
0
 @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);
     }
   }
 }