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

Commit c1542f1f authored by Paul Duffin's avatar Paul Duffin
Browse files

Refactor code incompatible with Mockito 2.7.13

Bug: 32912773
Test: make checkbuild
Change-Id: Idcd89438aa05ed2d010934cc6613763d4cfb9885
parent e11cb90e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -37,9 +37,9 @@ import java.util.List;
import java.util.Map;

import org.mockito.ArgumentCaptor;
import org.mockito.ArgumentMatcher;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.mockito.compat.ArgumentMatcher;

public class PreferenceListTest extends AndroidTestCase {
    private static final String TAG = "PreferenceListTest";
@@ -138,7 +138,7 @@ public class PreferenceListTest extends AndroidTestCase {

        final ArgumentMatcher<VpnProfile> equalsFake = new ArgumentMatcher<VpnProfile>() {
            @Override
            public boolean matches(final Object arg) {
            public boolean matchesObject(final Object arg) {
                if (arg == vpnProfile) return true;
                if (arg == null) return false;
                return TextUtils.equals(((VpnProfile) arg).key, vpnProfile.key);