fest-assert-2.x icon indicating copy to clipboard operation
fest-assert-2.x copied to clipboard

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

Open cperry-gpsw opened this issue 10 years ago • 2 comments

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 avatar Jul 20 '15 17:07 cperry-gpsw

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

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

cperry-gpsw avatar Jul 20 '15 17:07 cperry-gpsw

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

joel-costigliola avatar Jul 20 '15 21:07 joel-costigliola