alexruiz / fest-assert-2.x

FEST Fluent Assertions 2.x
http://fest.easytesting.org
Apache License 2.0
402 stars 69 forks source link

Cannot use fest-assert for POJO Unit tests in an Android project #168

Open cperry-gpsw opened 9 years ago

cperry-gpsw commented 9 years ago

Since there is no java.awt included in Android when we try to do a test compile we see the following:

Error:(22, 5) Gradle: error: cannot access BufferedImage
class file for java.awt.image.BufferedImage not found

Can we get a module that is stripped of java.awt and is NOT targeting Android classes but will work with Android?

cperry-gpsw commented 9 years ago

Hmmm... looks like 2.0M8 fixes this? Just looked at the release notes.

Should I be using fest-assert or fest-assert-core?

joel-costigliola commented 9 years ago

you could try assertj-core 1.x, it's android compatible or even better https://github.com/square/assertj-android.