ascopes / java-compiler-testing

Write sandboxed integration tests for Java annotation processors and plugins.
https://ascopes.github.io/java-compiler-testing/
Apache License 2.0
13 stars 10 forks source link

Simplify testing configuration by disabling Jigsaw in unit tests #727

Closed ascopes closed 2 months ago

ascopes commented 2 months ago

Disables Jigsaw modules in unit tests.

This will also allow the movement of test classes into the same package hierarchy going forwards, which will improve encapsulation.

This change will be performed separately.

ascopes commented 2 months ago

Failing tests:

[ERROR] Errors: 
[ERROR]   AbstractCompilersProviderTest.configurersThatDoNotOpenPackagesToJctModuleWillProduceExceptions:409 » Find Module org.example not found
[ERROR]   MemoryFileSystemProviderImplTest$MemoryFileSystemUrlHandlerProviderTest.providerIsRegisteredAsSpiInModuleDescriptor:216 NullPointer Cannot invoke "java.lang.module.ModuleDescriptor.provides()" because the return value of "java.lang.Module.getDescriptor()" is null