- http://selendroid.io/
- http://ios-driver.github.io/ios-driver/#real
- Hamcrest matchers
- replace asserts
- high degree of complexity
- easy to understand
- plain (useful) logging?
- Examples:
allOf
– matches if all matchers match (short circuits)anyOf
– matches if any matchers match (short circuits)not
– matches if the wrapped matcher doesn’t match and viceequalTo
– test object equality using the equals methodis
– decorator for equalTo to improve readabilityhasToString
– test Object.toStringinstanceOf
,isCompatibleType
– test typenotNullValue
,nullValue
– test for nullsameInstance
– test object identityhasEntry
,hasKey
,hasValue
– test a map contains an entry, key or valuehasItem
,hasItems
– test a collection contains elementshasItemInArray
– test an array contains an elementcloseTo
– test floating point values are close to a given valuegreaterThan
,greaterThanOrEqualTo
,lessThan
,lessThanOrEqualTo
equalToIgnoringCase
– test string equality ignoring caseequalToIgnoringWhiteSpace
– test string equality ignoring differences in runs of whitespacecontainsString
,endsWith
,startsWith
– test string matching
- http://crunchify.com/how-to-use-hamcrest-assertthat-matchers-to-create-junit-testcases-in-java-complete-tutorial/
xxx