I am using dockerfile-maven plugin to move my jar file inside docker container before running integration testing. But mvn verify command builds the images and run integrati
java.lang.IllegalAccessException: Class org.testng.internal.MethodInvocationHelper can not access a member of class IntegrationTestIT with modifiers "public"
You have to make your class public to run tests :
public class IntegrationTestIT {
...
If your integration tests are running in the integration-test
phase, you can force the execution of the docker plugin during the pre-integration-test
phase :
<execution>
...
<phase>pre-integration-test</phase>
</execution>