Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
shubha-rajan committed Oct 8, 2022
1 parent 998a19b commit 53e4480
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

@RunWith(JUnit4.class)
public class CloudSqlInstanceTest {
Expand All @@ -43,7 +44,9 @@ public class CloudSqlInstanceTest {

@Before
public void setup() throws IOException {
when(googleCredentials.createScoped()).thenReturn(scopedCredentials);
MockitoAnnotations.openMocks(this);
when(googleCredentials.createScoped(
"https://www.googleapis.com/auth/sqlservice.login")).thenReturn(scopedCredentials);
}

@Test
Expand Down

0 comments on commit 53e4480

Please sign in to comment.