I have a Maven project that includes some test cases. Today I tried adding the jarsigner plugin and now the tests fail:
java.lang.SecurityException: subscriber information of type "type .AccountType" does not match the subscriber information of other classes in one package
Test classes are in one package to have access to private-private methods, etc. I believe this error occurs because junit test classes are not signed while the classes are being tested.
Does anyone have a suggestion on how to avoid this problem? I had some ideas, but I donβt know how to implement them:
- The reason for the testing phase for using classes instead of a jar file.
- Put the test classes in your own jar file and sign it.
source
share