square / assertj-android

A set of AssertJ helpers geared toward testing Android.
https://square.github.io/assertj-android/
Apache License 2.0
1.58k stars 156 forks source link

TextViewAssert's isEmpty() doesn't work with EditText #67

Closed jonasfa closed 11 years ago

jonasfa commented 11 years ago

I'll be happy to submit a well tested patch once you confirm this is a bug.

It seems it uses hasText("") when it should use hasTextString(""). Can anybody reproduce?

assertThat(new EditText(anyActivity)).isEmpty(); // always fails
JakeWharton commented 11 years ago

Sounds logical.