-
-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SoftAssertions java.lang.IllegalArgumentException: Could not create type #1322
Comments
Hi, for SoftAssertions AssertJ uses https://github.com/raphw/byte-buddy If I understand http://bytebuddy.net/#/tutorial ("Loading classes in Android applications" section) correctly, (normal) Byte Buddy does not work on Android. Sorry! |
Then this should be clear in the documentation, I spent hours on this yesterday and there was no mention of incompatibility with Android, on the contrary there is a section on the AssertJ site on how it works with Android: http://joel-costigliola.github.io/assertj/assertj-core.html#android |
Fair enough, this should clear in the doc. |
There is a version of ByteBuddy for Android: byte-buddy-android. Couldn't it be used instead of regular bytebuddy for AssertJ? Lack of SoftAssertions is really painful for Android. I have to wrap normal assertions, catch errors and then at the end present user results. Please check if Android version of ByteBuddy can be applied for AssertJ. |
I keep getting an IllegalArgumentException when trying to use SoftAssertions, I've tried using several of the libraries provided:
no matter of how I state the assertions in the code (using lambda, JUnit @rule, JUnit5 @RegisterExtension etc. I keep getting the attached error.
I'm trying to do this on Android, running 8.0 and JUnit 5 with the dependency set in my gradle build to;
androidTestImplementation "org.assertj:assertj-core:3.11.1"
My test class in short
Above code is of course truncated, but all my efforts have resulted in the below error.
I'm wondering if I'm doing something wrong as there are no open issues for this that I can find.
The text was updated successfully, but these errors were encountered: