Replies: 2 comments
-
/cc @FroMage (panache), @loicmathieu (mongodb,panache) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have seen in the doc that it is possible to mock the session if someone uses hibernate, but I don't. Is there alternative ways to do that? @FroMage |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a entity that extends the PanacheMongoEntity and for persist operations I use the method in the parent class. Also I have a REST interface that only have this code:
In the test class if I try to use PanacheMock to mock the class:
The mocking itself does not work, the persist will not throw exception, also for some reason the debug mode does not work either. What am I doing wrong? Is there good way to mock the behavior?
Beta Was this translation helpful? Give feedback.
All reactions