Skip to content

Commit aa26286

Browse files
Update tests for APM.endAppLaunch
1 parent d41ed34 commit aa26286

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

android/src/test/java/com/instabug/reactlibrary/RNInstabugAPMModuleTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,11 @@ public void givenTruesetEnabled_whenQuery_thenShouldCallNativeApiWithEnabled() {
106106

107107
@Test
108108
public void given$endAppLaunch_whenQuery_thenShouldCallNativeApiWithEnabled() {
109-
// given
110-
PowerMockito.mockStatic(APM.class);
109+
111110
// when
112111
apmModule.endAppLaunch();
113112
// then
114-
PowerMockito.verifyStatic(VerificationModeFactory.times(1));
113+
verify(APM.class, times(1));
115114
APM.endAppLaunch();
116115
}
117116

0 commit comments

Comments
 (0)