Clean up unnecessary spy context statements
Remove spy context syntax because we do not need to mock context anymore in the test cases. Bug: 117644158 Test: robotests Change-Id: I222eec4fbc1994d7bb79adead40b76ac0a000bdc
This commit is contained in:
@@ -19,8 +19,6 @@ package com.android.settings.flashlight;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import static org.mockito.Mockito.spy;
|
||||
|
||||
import android.content.Context;
|
||||
import android.provider.Settings;
|
||||
|
||||
@@ -50,7 +48,7 @@ public class FlashlightSliceBuilderTest {
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
mContext = spy(RuntimeEnvironment.application);
|
||||
mContext = RuntimeEnvironment.application;
|
||||
|
||||
// Set-up specs for SliceMetadata.
|
||||
SliceProvider.setSpecs(SliceLiveData.SUPPORTED_SPECS);
|
||||
|
Reference in New Issue
Block a user