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
Hi, I use Javers in my work to compare java objects and collections, for example in unit test to give a hint on why two objects have some differences. I came across this exception, when I tried to use an interface instead of an enum type in one of my objects.
JaversException MANAGED_CLASS_MAPPING_ERROR: given javaClass 'class com.somepackage.JaversManagedTypeIssueTest$MyFirstEnum' is mapped to PrimitiveType, expected ManagedType
I created a test case using Junit (sorry if this is not written in groovy, I hope this is okay)
Do you know if this is an intended behaviour ? I don't know much on the inner working of Javers, I was hoping it would handle the interface with the different enum instances, and try to compare the values when possible.
Thanks in advance for your help
The text was updated successfully, but these errors were encountered:
Hi @MaxiBerdy , please provide a PR with a failing test case, see instructions here.
From what I see, you are using quite uncommon approach of having an enum extending an empty interface. I guess Javers might not support it
Hi, I use Javers in my work to compare java objects and collections, for example in unit test to give a hint on why two objects have some differences. I came across this exception, when I tried to use an interface instead of an enum type in one of my objects.
JaversException MANAGED_CLASS_MAPPING_ERROR: given javaClass 'class com.somepackage.JaversManagedTypeIssueTest$MyFirstEnum' is mapped to PrimitiveType, expected ManagedType
I created a test case using Junit (sorry if this is not written in groovy, I hope this is okay)
Do you know if this is an intended behaviour ? I don't know much on the inner working of Javers, I was hoping it would handle the interface with the different enum instances, and try to compare the values when possible.
Thanks in advance for your help
The text was updated successfully, but these errors were encountered: