assertHasProperty
fun <T> assertHasProperty(viewTree: ViewTree, propertyName: String, expectedValue: T, extractor: NodeInfoTestHelper.PropertyExtractor<T>, extractorFunction: Function<View, String>)
Asserts that a ViewTree contains a view with a NodeInfo that has the specified property value.
Parameters
viewTree
the ViewTree to search
propertyName
the name of the property (used in error messages)
expectedValue
the expected value of the property
extractor
function to extract the property from NodeInfo
extractorFunction
function to generate debug output for error messages
Throws
if no view with the specified property value is found