Merge "Fix assertion in VisibilityPreferenceControllerTest."

This commit is contained in:
TreeHugger Robot
2017-12-11 19:19:33 +00:00
committed by Android (Google) Code Review

View File

@@ -209,7 +209,7 @@ public class VisibilityPreferenceControllerTest {
ArgumentCaptor.forClass(CharSequence[].class); ArgumentCaptor.forClass(CharSequence[].class);
verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); verify(pref, times(1)).setEntryValues(argumentCaptor.capture());
assertFalse(toStringList(argumentCaptor.getValue()) assertFalse(toStringList(argumentCaptor.getValue())
.contains(VISIBILITY_NO_OVERRIDE)); .contains(String.valueOf(VISIBILITY_NO_OVERRIDE)));
} }
@Test @Test
@@ -228,7 +228,7 @@ public class VisibilityPreferenceControllerTest {
ArgumentCaptor.forClass(CharSequence[].class); ArgumentCaptor.forClass(CharSequence[].class);
verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); verify(pref, times(1)).setEntryValues(argumentCaptor.capture());
assertFalse(toStringList(argumentCaptor.getValue()) assertFalse(toStringList(argumentCaptor.getValue())
.contains(VISIBILITY_NO_OVERRIDE)); .contains(String.valueOf(VISIBILITY_NO_OVERRIDE)));
} }
@Test @Test