File tree Expand file tree Collapse file tree
src/test/java/com/google/firebase Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939import com .google .common .base .Suppliers ;
4040import com .google .common .collect .ImmutableList ;
4141import com .google .common .collect .ImmutableMap ;
42+ import com .google .common .collect .ImmutableSet ;
4243import com .google .firebase .FirebaseApp .TokenRefresher ;
4344import com .google .firebase .FirebaseOptions .Builder ;
4445import com .google .firebase .database .FirebaseDatabase ;
6061import java .util .UUID ;
6162import java .util .concurrent .Callable ;
6263import java .util .concurrent .TimeUnit ;
64+ import org .junit .AfterClass ;
6365import org .junit .Assert ;
6466import org .junit .BeforeClass ;
6567import org .junit .Rule ;
@@ -83,6 +85,11 @@ public static void setupClass() throws IOException {
8385 TestUtils .getApplicationDefaultCredentials ();
8486 }
8587
88+ @ AfterClass
89+ public static void tearDownClass () {
90+ TestUtils .unsetEnvironmentVariables (ImmutableSet .of (FirebaseApp .FIREBASE_CONFIG_ENV_VAR ));
91+ }
92+
8693 @ Test (expected = NullPointerException .class )
8794 public void testNullAppName () {
8895 FirebaseApp .initializeApp (OPTIONS , null );
You can’t perform that action at this time.
0 commit comments