DATACMNS-993 - Clean up class loader hacking in tests.

ClassLoaderRule with @ClassLoaderConfiguration allows easy creation FilteringClassLoader. Changed usage pattern of ClassUtils.isPresent(…) in order to ease testing. Copied the ShadowingClassloader from SpringFramework to get a constructor that doesn't shadow anything by default.

Original pull request: #202.
This commit is contained in:
Jens Schauder
2017-02-14 20:24:44 +01:00
committed by Oliver Gierke
parent 3ede64f982
commit 81ea579cd7
8 changed files with 460 additions and 40 deletions

View File

@@ -231,7 +231,7 @@
<goal>test-process</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/test-annotations</outputDirectory>
<outputDirectory>${project.build.directory}/generated-test-sources/test-annotations</outputDirectory>
<processor>com.querydsl.apt.QuerydslAnnotationProcessor</processor>
</configuration>
</execution>