So, the perceived problem that I had was that I believed during test I would need to determine which environment (maven or execution) I was running in and load the resources specific to that environment. WRONG! Maven will copy the src/main/resources to target/classes/ when building and then test from there, so the resource path is the same.
In both cases, all that is needed is to call class.getResource(""). This greatly simplified the code.
No comments:
Post a Comment