Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Move the assertions tricky feature to the end of the list (AdevintaSp…
Browse files Browse the repository at this point in the history
…ain#348)

Just to keep it coherent
  • Loading branch information
rocboronat authored May 25, 2020
1 parent b88507a commit 68e3877
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,6 @@ assertTextColorIsNot(R.id.customTextView, R.styleable.SampleCustomView, R.style.
assertRecyclerViewItemCount(R.id.recycler, 10);
```

#### And another tricky feature
```java
assertThatBackButtonClosesTheApp();
```
#### Is this ImageView showing a drawable?
```java
assertHasAnyDrawable(R.id.image_view);
Expand All @@ -345,6 +341,11 @@ assertProgressIsMin(R.id.seek_bar)
assertProgressIsMax(R.id.seek_bar)
```

#### And another tricky feature
```java
assertThatBackButtonClosesTheApp();
```

### Custom assertions

If you have a special case not covered by the given assertions API, we encourage you to assert these special cases with our custom assertions API. It's a convenient way to replace plain `Matcher`s with complex assertions. With Barista, you can match any kind of view by knowing its type and passing its `viewId`, `text`, or a `Matcher<View>`. Once you matched it, you will be able to assert all its properties without adding any complex `Matcher` to your project.
Expand Down

0 comments on commit 68e3877

Please sign in to comment.