@Test public void testSetEmojiReplaceStrategy() { final Spannable testString = new SpannableString("abc"); when(mEmojiCompat.getLoadState()).thenReturn(EmojiCompat.LOAD_STATE_SUCCEEDED); assertEquals(EmojiCompat.REPLACE_STRATEGY_DEFAULT, mTextWatcher.getEmojiReplaceStrategy()); mTextWatcher.onTextChanged(testString, 0, 0, 1); verify(mEmojiCompat, times(1)).process(any(Spannable.class), anyInt(), anyInt(), anyInt(), eq(EmojiCompat.REPLACE_STRATEGY_DEFAULT)); mTextWatcher.setEmojiReplaceStrategy(EmojiCompat.REPLACE_STRATEGY_ALL); mTextWatcher.onTextChanged(testString, 0, 0, 1); verify(mEmojiCompat, times(1)).process(any(Spannable.class), anyInt(), anyInt(), anyInt(), eq(EmojiCompat.REPLACE_STRATEGY_ALL)); }
void setEmojiReplaceStrategy(@EmojiCompat.ReplaceStrategy int replaceStrategy) { mEmojiReplaceStrategy = replaceStrategy; }
EmojiTextWatcher implements android.text.TextWatcher { void setEmojiReplaceStrategy(@EmojiCompat.ReplaceStrategy int replaceStrategy) { mEmojiReplaceStrategy = replaceStrategy; } }
EmojiTextWatcher implements android.text.TextWatcher { void setEmojiReplaceStrategy(@EmojiCompat.ReplaceStrategy int replaceStrategy) { mEmojiReplaceStrategy = replaceStrategy; } EmojiTextWatcher(EditText editText); }
EmojiTextWatcher implements android.text.TextWatcher { void setEmojiReplaceStrategy(@EmojiCompat.ReplaceStrategy int replaceStrategy) { mEmojiReplaceStrategy = replaceStrategy; } EmojiTextWatcher(EditText editText); @Override void onTextChanged(CharSequence charSequence, final int start, final int before,
            final int after); @Override void beforeTextChanged(CharSequence s, int start, int count, int after); @Override void afterTextChanged(Editable s); }
EmojiTextWatcher implements android.text.TextWatcher { void setEmojiReplaceStrategy(@EmojiCompat.ReplaceStrategy int replaceStrategy) { mEmojiReplaceStrategy = replaceStrategy; } EmojiTextWatcher(EditText editText); @Override void onTextChanged(CharSequence charSequence, final int start, final int before,
            final int after); @Override void beforeTextChanged(CharSequence s, int start, int count, int after); @Override void afterTextChanged(Editable s);  }