TagsListEntryView extends BaseRecyclerViewHolder<TagsListEntry> { @Override public void bindData(TagsListEntry data) { super.bindData(data); mName.setText(data.name); boolean activated = data.isActivated(); mContainer.setActivated(activated); mName.setTextAppearance(getContext(), activated ? R.style.FilterEntry_Selected : R.style.FilterEntry); } TagsListEntryView(ViewGroup parent); @Override void bindData(TagsListEntry data);  }
@Test public void should_bind_data() { Tag tag = new Tag("Kotlin"); tag.id = 06L; TagsListEntry entry = new TagsListEntry(tag); view.bindData(entry); assertThat(view.mName.getText().toString()).isEqualTo("#Kotlin"); }