congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TextViewAssert.isVisible
Code IndexAdd Tabnine to your IDE (free)

How to use
isVisible
method
in
org.assertj.android.api.widget.TextViewAssert

Best Java code snippets using org.assertj.android.api.widget.TextViewAssert.isVisible (Showing top 4 results out of 315)

origin: hidroh/materialistic

@Test
public void testStory() {
  item.setIsViewed(true);
  verify(itemManager).getItem(any(), eq(ItemManager.MODE_DEFAULT), itemListener.capture());
  itemListener.getValue().onResponse(item);
  RecyclerView.ViewHolder holder = adapter.getViewHolder(0);
  assertThat((View) holder.itemView.findViewById(R.id.bookmarked)).isNotVisible();
  assertThat((TextView) holder.itemView.findViewById(R.id.rank)).hasTextString("46");
  assertThat((TextView) holder.itemView.findViewById(R.id.title)).hasTextString("title");
  assertThat((TextView) holder.itemView.findViewById(R.id.comment))
      .isVisible()
      .isEmpty();
  assertViewed();
}
origin: hidroh/materialistic

@Test
public void testCommentBinding() {
  verify(userManager).getUser(eq("username"), userCaptor.capture());
  userCaptor.getValue().onResponse(user);
  RecyclerView recyclerView = (RecyclerView) activity.findViewById(R.id.recycler_view);
  verify(itemManager).getItem(eq("1"),
      eq(ItemManager.MODE_DEFAULT),
      itemCaptor.capture());
  itemCaptor.getValue().onResponse(new TestHnItem(1L) {
    @Override
    public String getText() {
      return "content";
    }
    @Override
    public String getParent() {
      return "2";
    }
  });
  RecyclerView.ViewHolder viewHolder = customShadowOf(recyclerView.getAdapter()).getViewHolder(0);
  assertThat((View) viewHolder.itemView.findViewById(R.id.title)).isNotVisible();
  assertThat((TextView) viewHolder.itemView.findViewById(R.id.text))
      .isVisible()
      .hasTextString("content");
  viewHolder.itemView.findViewById(R.id.comment).performClick();
  assertThat(shadowOf(activity).getNextStartedActivity())
      .hasComponent(activity, ThreadPreviewActivity.class)
      .hasExtra(ThreadPreviewActivity.EXTRA_ITEM);
}
origin: hidroh/materialistic

    .containsText(activity.getResources().getQuantityString(R.plurals.score, 46, 46));
assertThat((TextView) viewHolder.itemView.findViewById(R.id.title))
    .isVisible()
    .hasTextString("title");
assertThat((TextView) viewHolder.itemView.findViewById(R.id.text))
    .isVisible()
    .hasTextString("content");
viewHolder.itemView.findViewById(R.id.comment).performClick();
origin: passy/Android-DirectoryChooser

@Test
public void testCreateDirectoryDialogAllowFolderNameModification() {
  final String directoryName = "mydir";
  final DirectoryChooserFragment fragment = DirectoryChooserFragment.newInstance(
      DirectoryChooserConfig.builder()
          .newDirectoryName(directoryName)
          .initialDirectory("")
          .allowReadOnlyDirectory(false)
          .allowNewDirectoryNameModification(true)
          .build());
  startFragment(fragment, DirectoryChooserActivityMock.class);
  fragment.onOptionsItemSelected(new TestMenuItem() {
    @Override
    public int getItemId() {
      return R.id.new_folder_item;
    }
  });
  final AlertDialog dialog = (AlertDialog) ShadowDialog.getLatestDialog();
  final ShadowAlertDialog shadowAlertDialog = Shadows.shadowOf(dialog);
  assertThat(shadowAlertDialog.getTitle()).isEqualTo("Create folder");
  assertThat(ShadowDialog.getShownDialogs()).contains(dialog);
  final TextView msgView = (TextView) dialog.findViewById(R.id.msgText);
  assertThat(msgView).hasText("Create new folder with name \"mydir\"?");
  final EditText editText = (EditText) dialog.findViewById(R.id.editText);
  assertThat(editText).isVisible();
  assertThat(editText).hasTextString(directoryName);
}
org.assertj.android.api.widgetTextViewAssertisVisible

Popular methods of TextViewAssert

  • <init>
  • hasText
  • hasTextString
  • containsText
  • doesNotContainText
  • hasCurrentTextColor
  • isEmpty
  • isGone
  • isNotNull
  • isNotVisible

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now