What is the difference between limited match and safe type type in espresso?

In the Android support test library, some demos use TypeSafeMatcher while others use BoundedMatcher when writing a test case for recyclerview. Can someone explain to me why to use an example or an example of use?

+4
source share
1 answer

They are very similar. Both are the usual type of connector that you can expand, and often they can be used for the same job. But there is one difference that you should always be aware of.

TypeSafeMatcher hamcrest . , . (, view instanceOf TextView), .

BoundedMatcher - Android , .

.

+2

Source: https://habr.com/ru/post/1685562/


All Articles