1 package com.acumenvelocity.ath.gcs;
2
3 import java.util.List;
4
5 import org.junit.jupiter.api.BeforeAll;
6 import org.junit.jupiter.api.Test;
7
8 import com.acumenvelocity.ath.common.Const;
9 import com.acumenvelocity.ath.common.Log;
10
11
12
13
14
15
16 public class TestGcs_FT {
17
18 @BeforeAll
19 public static void startUp() throws Exception {
20 AthStorage.init();
21 }
22
23 @Test
24 public void deleteAll() throws Exception {
25 AthStorage.deleteMany(Const.ATH_GCS_BUCKET, "");
26 }
27
28 @Test
29 public void listAll() throws Exception {
30 List<String> names = AthStorage.getNames(Const.ATH_GCS_BUCKET, "");
31
32 for (String name : names) {
33 Log.debug(this.getClass(), name);
34 }
35
36 System.out.println(names.size() + " objects in GCS");
37 }
38
39 }