Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1322d0a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update AnomalyJobServiceTests."

parents b81cc1e3 3e2917b9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -71,7 +71,8 @@ public class AnomalyCleanupJobServiceTest {
        MockitoAnnotations.initMocks(this);

        mContext = spy(RuntimeEnvironment.application);
        mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder())));
        mJobScheduler = spy(new JobSchedulerImpl(mContext,
                IJobScheduler.Stub.asInterface(new Binder())));
        when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler);
    }

+2 −1
Original line number Diff line number Diff line
@@ -69,7 +69,8 @@ public class AnomalyConfigJobServiceTest {
        MockitoAnnotations.initMocks(this);

        mContext = spy(RuntimeEnvironment.application);
        mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder())));
        mJobScheduler = spy(new JobSchedulerImpl(mContext,
                IJobScheduler.Stub.asInterface(new Binder())));
        when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler);

        mJobService = spy(new AnomalyConfigJobService());
+2 −1
Original line number Diff line number Diff line
@@ -113,7 +113,8 @@ public class AnomalyDetectionJobServiceTest {
        MockitoAnnotations.initMocks(this);

        mContext = spy(RuntimeEnvironment.application);
        mJobScheduler = spy(new JobSchedulerImpl(IJobScheduler.Stub.asInterface(new Binder())));
        mJobScheduler = spy(new JobSchedulerImpl(mContext,
                IJobScheduler.Stub.asInterface(new Binder())));
        when(mContext.getSystemService(JobScheduler.class)).thenReturn(mJobScheduler);

        mPolicy = new BatteryTipPolicy(mContext);