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

Question: mix core and android assertions #137

Closed emartynov closed 9 years ago

emartynov commented 9 years ago

Hi guys,

Are there good way to mix core and android assertions? Currently I static import android assertions class and I have to specify with package assertions from core. Is there easier way?

In general, by design, would it be acceptable to have assertions in the same package as core. Or maybe it is better to write proxy classes that will call core assertions?

JakeWharton commented 9 years ago

You can static import the assertThat method from both the core and Android. On Nov 5, 2014 4:36 AM, "Eugen Martynov" notifications@github.com wrote:

Hi guys,

Are there good way to mix core and android assertions? Currently I static import android assertions class and I have to specify with package assertions from core. Is there easier way?

In general, by design, would it be acceptable to have assertions in the same package as core. Or maybe it is better to write proxy classes that will call core assertions?

— Reply to this email directly or view it on GitHub https://github.com/square/assertj-android/issues/137.

JakeWharton commented 9 years ago

Specifically,

import static ...Assertions.assertThat;
import static ...android.Assertions.assertThat;
emartynov commented 9 years ago

Thank you!