Replies: 1 comment
-
It's a bit unclear what you're asking.
What does that mean?
Which challenges? Which controllers? From looking at a single controller, it's impossible to guess what could be wrong. |
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
-
Hello Everyone,
I am currently working on a small project for fun using Spring and modulith, and I've encountered an issue where I need some guidance. My challenge involves disabling REST controllers in the adapter layer during ApplicationModules testing. I aim to leverage Spring HATEOAS and the linkTo(methodOn(XController.class)) function, but the presence of these dependencies in my tests leads to failures.
I am looking for a solution that aligns with the spirit of modulith yet allows for a workaround in this particular scenario. This would facilitate easier resource linking management. Has anyone faced a similar challenge or knows of an elegant way to disable these controllers in tests without compromising clean architecture principles?
Any suggestions or advice would be immensely appreciated. Thank you in advance for your help and insights.
Best regards,
Tomasz Orchowski
example controller:
Beta Was this translation helpful? Give feedback.
All reactions