File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
app/src/test/java/com/d4rk/androidtutorials/java/ads/managers Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 44import static org .junit .Assert .assertTrue ;
55import static org .mockito .ArgumentMatchers .any ;
66import static org .mockito .ArgumentMatchers .anyString ;
7+ import static org .mockito .ArgumentMatchers .anyInt ;
78import static org .mockito .Mockito .mock ;
89import static org .mockito .Mockito .mockStatic ;
910import static org .mockito .Mockito .times ;
@@ -43,6 +44,7 @@ public class AppOpenAdManagerTest {
4344 public void setUp () throws Exception {
4445 application = mock (Application .class );
4546 when (application .getApplicationContext ()).thenReturn (application );
47+ when (application .getString (anyInt ())).thenReturn ("test-app-open-ad-unit-id" );
4648
4749 managerClass = findManagerClass ();
4850 Constructor <?> constructor = managerClass .getDeclaredConstructor (Application .class );
You can’t perform that action at this time.
0 commit comments