-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Panache repository doesn't work when injected in Kotlin test #1969
Comments
I'll debug this later as well and see what I can come up with. However are you sure it only fail for Kotlin? My naive attempt to run the reproducer failed with the Java test as well. |
Sounds like a dupe of #1724, no? |
I believe it is. However @cristhiank reported that it works for Java and not Kotlin. I personally have not been able to get it to work for Java either. |
Yeah, let's close it. Don't hesitate to reopen if it turns out to be different, though. |
Would you have a copy of the working Java Test? I am having similar issues trying to test persisting a |
I am getting the following error when I use the "augmented/enhanced" methods on the Panache repository injected in a kotlin test class:
IMO after some deep debugging I think it is related to #770 because the "augmented" class is present in the
test-clases/
folder but the ArC container is returning the non-enhanced class.This error shows only when the test class is written in Kotlin. Everything works as expected with Java ;)
I have a reproducer in this repo:
https://github.com/cristhiank/quarkus-bugs
https://github.com/cristhiank/quarkus-bugs/blob/master/src/test/java/org/acme/rest/PanacheResourceKotlinTest.kt
The text was updated successfully, but these errors were encountered: