When writing unit tests for the application, usually I create copy of some configurations that are in original main/resources
and modify them for test purpose, but i leave the names the same. However Junit sometimes takes the one in src and sometimes the one in the test/resources
.
How do we manage which one it picks up without renaming files?
For example i have some "config.json" which is in both test and main's resources, how does junit choose which one to pick when running a test...