Skip to content

Releases: toolisticon/cute

Improved fluent api and added tests of generated classes

26 Jan 23:31
Compare
Choose a tag to compare

We have introduced an improved fluent api with this release.
The Test are started by using the Cute class now.

Additionally, testing of generated classes has been added.

Upgrade guide for existing projects already using Cute

We have moved the old api to the cute-legacy module, so you can decide whether to migrate new api or stay with the old one with little changes needed.

        <dependency>
            <groupId>io.toolisticon.cute</groupId>
            <artifactId>cute-legacy</artifactId>
            <version>1.0.0</version>
        </dependency>

Unfortunately the fluent api interfaces had to be moved from the CompileTestBuilder class to the CompileTestBuilderApi class.
In case if you have shared fluent api configuration between tests, you need to update imports and Types in variable declarations.

You can use both legacy and new api in parallel!

Java 9 Module Support

10 May 14:58
Compare
Choose a tag to compare

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();