You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IncompatibleClassChangeError: class demo.$Subclass_Flag_flag cannot inherit from sealed class demo.ServiceTest$Flag
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:874)
at demo.ServiceTest$1.<init>(ServiceTest.java:38)
at demo.ServiceTest.shouldWork(ServiceTest.java:37)
It fails because it tries to mock the enum. Is there a way to say "do not try to mock the result, I will provide it to you"? Thank you
The text was updated successfully, but these errors were encountered:
Hello,
In the following environment:
When testing the following code
We have the following exception
It fails because it tries to mock the enum. Is there a way to say "do not try to mock the result, I will provide it to you"? Thank you
The text was updated successfully, but these errors were encountered: