Skip to content

Java 9 Module Support

Choose a tag to compare

@tobiasstamann tobiasstamann released this 10 May 14:58
· 210 commits to master since this release

This release provides support for doing compile test including a module-info.java file.

Referenced module libraries must be on classpath and configured to be put on module path during compilation test by using the useModules method of the CompileTestBuilder:

CompileTestBuilder
                .compilationTest()
                .addSources(
                        JavaFileObjectUtils.readFromResource("/testcases/bindRegularJavaModule/Test.java"),
                        JavaFileObjectUtils.readFromResource("/testcases/bindRegularJavaModule/module-info.java"))
                .useModules("io.toolisticon.compiletesting.integrationtest.java9.regularmodule")
                .compilationShouldSucceed()
                .testCompilation();