The project created by atlas-create-confluence-plugin comes with the example class MyPluginComponentImpl that resides in some package, let’s say test.impl. Then, the integration test MyComponentWiredTest for the class is in the package it.test. So, as the class is in another package, package internal and protected members cannot be accessed.
As tests should be put into the same package as the tested class (java - How can we test package-private class? - Stack Overflow) I moved MyComponentWiredTest to test.impl.
But then, when running the integration tests with atlas-integration-test I get the error:
test.impl.MyComponentWiredTest: the class [test.impl.MyComponentWiredTest] is annotated with @RunWith(AtlassianPluginsTestRunner.class) but it is not in the 'it.' package.(..)
How do you solve that? I don’t want to make everything public for testing. Of course I don’t want to move my implementation to it.test either.