Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
breedx-splk committed Dec 8, 2023
1 parent 40b40f2 commit f137f5a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import java.time.Duration;
import java.util.List;
import java.util.function.Function;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.ArgumentCaptor;
Expand All @@ -49,11 +50,17 @@ class OpenTelemetryRumBuilderTest {
final InMemorySpanExporter spanExporter = InMemorySpanExporter.create();

@Mock Application application;
@Mock android.content.Context applicationContext;
@Mock Activity activity;
@Mock ApplicationStateListener listener;

@Captor ArgumentCaptor<Application.ActivityLifecycleCallbacks> activityCallbacksCaptor;

@BeforeEach
void setup() {
when(application.getApplicationContext()).thenReturn(applicationContext);
}

@Test
void shouldRegisterApplicationStateWatcher() {
makeBuilder().build();
Expand Down

0 comments on commit f137f5a

Please sign in to comment.