@@ -54,9 +54,9 @@ public class BigtableMaterializedViewIT {
5454 private static final Logger LOGGER = Logger .getLogger (BigtableMaterializedViewIT .class .getName ());
5555 private static final int [] BACKOFF_DURATION = {2 , 4 , 8 , 16 , 32 , 64 , 128 , 256 , 512 , 1024 };
5656
57- private static BigtableInstanceAdminClient client ;
58- private static BigtableTableAdminClient tableAdminClient ;
59- private static Table testTable ;
57+ private BigtableInstanceAdminClient client ;
58+ private BigtableTableAdminClient tableAdminClient ;
59+ private Table testTable ;
6060 private String instanceId = "" ;
6161
6262 // TODO: Update this test once emulator supports InstanceAdmin operation
@@ -67,16 +67,12 @@ public static void validatePlatform() throws IOException {
6767 .withMessage ("BigtableInstanceAdminClient doesn't support on Emulator" )
6868 .that (testEnvRule .env ())
6969 .isNotInstanceOf (EmulatorEnv .class );
70-
71- createInstance ();
7270 }
7371
74- public static void createInstance () throws IOException {
72+ @ Before
73+ public void setUp () throws InterruptedException , IOException {
7574 client = testEnvRule .env ().getInstanceAdminClient ();
76- }
7775
78- @ Before
79- public void setUp () throws InterruptedException {
8076 instanceId = new PrefixGenerator ().newPrefix ();
8177 client .createInstance (
8278 CreateInstanceRequest .of (instanceId )
@@ -209,8 +205,7 @@ private String getQuery() {
209205 + "` GROUP BY _key" ;
210206 }
211207
212- private static Table createTestTable (BigtableTableAdminClient tableAdmin )
213- throws InterruptedException {
208+ private Table createTestTable (BigtableTableAdminClient tableAdmin ) throws InterruptedException {
214209 String tableId = PrefixGenerator .newPrefix ("BigtableMaterializedViewIT#createTestTable" );
215210 Table testTable = tableAdmin .createTable (CreateTableRequest .of (tableId ).addFamily ("cf1" ));
216211
0 commit comments