Java Code Examples for android.support.test.espresso.core.deps.guava.collect.Ordering

The following are top voted examples for showing how to use android.support.test.espresso.core.deps.guava.collect.Ordering. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: Game-of-Thrones   File: RecyclerSortedViewAssertion.java   View source code 5 votes vote down vote up
@Override
public void check(View view, NoMatchingViewException noViewFoundException) {
  StringDescription description = new StringDescription();
  RecyclerView recyclerView = (RecyclerView) view;
  sortedList = withAdapter.itemsToSort(recyclerView);

  checkIsNotEmpty(view, description);

  description.appendText("The list " + sortedList + " is not sorted");
  assertTrue(description.toString(), Ordering.natural().<T>isOrdered(sortedList));
}
 
Example 2
Project: quotes   File: RecyclerSortedViewAssertion.java   View source code 5 votes vote down vote up
@Override
public void check(View view, NoMatchingViewException noViewFoundException) {
    StringDescription description = new StringDescription();
    RecyclerView recyclerView = (RecyclerView) view;
    sortedList = withAdapter.itemsToSort(recyclerView);

    checkIsNotEmpty(view, description);

    description.appendText("The list "+ sortedList + " is not sorted");
    assertTrue(description.toString(), Ordering.natural().<T>isOrdered(sortedList));
}