Tests that verify that the process of configuring logging on startup
works correctly by selecting the file with the highest priority.
This test sets up a classpath where:
- first file (in parent loader) has priority=10 (parentFirst=true)
- second file found has no priority set
- third file found has priority=20
- fourth file found also has priority=20
The result should be that the third file is used.
Note that parentFirst=true is used in this test because method
PathableClassLoader.getResources always behaves as if
parentFirst=true; see the PathableClassLoader javadoc for details.
|