There was an error while loading. Please reload this page.
1 parent 998a19b commit 53e4480Copy full SHA for 53e4480
core/src/test/java/com/google/cloud/sql/core/CloudSqlInstanceTest.java
@@ -28,6 +28,7 @@
28
import org.junit.runner.RunWith;
29
import org.junit.runners.JUnit4;
30
import org.mockito.Mock;
31
+import org.mockito.MockitoAnnotations;
32
33
@RunWith(JUnit4.class)
34
public class CloudSqlInstanceTest {
@@ -43,7 +44,9 @@ public class CloudSqlInstanceTest {
43
44
45
@Before
46
public void setup() throws IOException {
- when(googleCredentials.createScoped()).thenReturn(scopedCredentials);
47
+ MockitoAnnotations.openMocks(this);
48
+ when(googleCredentials.createScoped(
49
+ "https://www.googleapis.com/auth/sqlservice.login")).thenReturn(scopedCredentials);
50
}
51
52
@Test
0 commit comments