Fix test case failure.
Fix the test failure of BatterySettingsFeatureProviderImplTest. The actual method call can't be passed with an argument matcher. Use the real object instead. Fixes: 289737082 Test: robotests Change-Id: Ia48e7b67ba94a8bb67ac1d26c502894a664c2b70
This commit is contained in:
@@ -18,9 +18,6 @@ package com.android.settings.fuelgauge;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import static org.mockito.ArgumentMatchers.anyLong;
|
||||
import static org.mockito.Mockito.eq;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.test.core.app.ApplicationProvider;
|
||||
@@ -43,11 +40,11 @@ public class BatterySettingsFeatureProviderImplTest {
|
||||
|
||||
@Test
|
||||
public void isManufactureDateAvailable_returnFalse() {
|
||||
assertThat(mImpl.isManufactureDateAvailable(eq(mContext), anyLong())).isFalse();
|
||||
assertThat(mImpl.isManufactureDateAvailable(mContext, 1000L)).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isFirstUseDateAvailable_returnFalse() {
|
||||
assertThat(mImpl.isFirstUseDateAvailable(eq(mContext), anyLong())).isFalse();
|
||||
assertThat(mImpl.isFirstUseDateAvailable(mContext, 1000L)).isFalse();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user