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 4
4
import static org .junit .Assert .assertTrue ;
5
5
import static org .mockito .ArgumentMatchers .any ;
6
6
import static org .mockito .ArgumentMatchers .anyString ;
7
+ import static org .mockito .ArgumentMatchers .anyInt ;
7
8
import static org .mockito .Mockito .mock ;
8
9
import static org .mockito .Mockito .mockStatic ;
9
10
import static org .mockito .Mockito .times ;
@@ -43,6 +44,7 @@ public class AppOpenAdManagerTest {
43
44
public void setUp () throws Exception {
44
45
application = mock (Application .class );
45
46
when (application .getApplicationContext ()).thenReturn (application );
47
+ when (application .getString (anyInt ())).thenReturn ("test-app-open-ad-unit-id" );
46
48
47
49
managerClass = findManagerClass ();
48
50
Constructor <?> constructor = managerClass .getDeclaredConstructor (Application .class );
You can’t perform that action at this time.
0 commit comments