Searched refs:mockSpannableFactory (Results 1 – 1 of 1) sorted by relevance
1436 final Spannable.Factory mockSpannableFactory = spy(new Spannable.Factory()); in testSetSpannableFactory() local1437 doCallRealMethod().when(mockSpannableFactory).newSpannable(any(CharSequence.class)); in testSetSpannableFactory()1438 mTextView.setSpannableFactory(mockSpannableFactory); in testSetSpannableFactory()1441 verify(mockSpannableFactory, never()).newSpannable(any(CharSequence.class)); in testSetSpannableFactory()1443 reset(mockSpannableFactory); in testSetSpannableFactory()1445 verify(mockSpannableFactory, never()).newSpannable(any(CharSequence.class)); in testSetSpannableFactory()1447 reset(mockSpannableFactory); in testSetSpannableFactory()1449 verify(mockSpannableFactory, never()).newSpannable(any(CharSequence.class)); in testSetSpannableFactory()1451 reset(mockSpannableFactory); in testSetSpannableFactory()1453 verify(mockSpannableFactory, times(1)).newSpannable(text); in testSetSpannableFactory()[all …]