Test class 'TestClass' is not constructable because it is not 'public'

Working with multimodule. Test dependencies were written in buildSrc module. The plug-in created by the domain module is being used.

This error occurs in the test class. ( junit 5)

What’s wrong?

That question has nothing to do with Gradle.

JUnit Jupiter obviously requires that you make the class and method public but they are not.

1 Like