In my code I need to do certain fixes only when it is run inside a JUnit test. How can I find out if code is running inside a JUnit test or not? Is there something like JUni
In order to distinguish between test and no test you can always define special property or value in application-test.properties.