I have a problem with ComponentAccessor that has not been initialised, I already check on multiple references on how to fix this and use the Mockito container but all sources are not clear. This is not for a unit test. Can you provide me some information and examples on how to initialize ComponentAccessor?
This is for a java maven spring plugin with atlassian connect and I can provide more information if needed.
Here is the output:
java.lang.IllegalStateException: ComponentAccessor has not been initialised.
This is not expected to occur on a production system.
Developers that encounter this message within a unit test
should use n MockitoMocksInContainer rule to initialize mockito and ComponentAccessor.
For more detailed explanation read the documentation
for MockComponentWorker in the jira-tests artifact for more information
about what causes this error and how to address it.
at com.atlassian.jira.component.ComponentAccessor.getWorker(ComponentAccessor.java:698)
at com.atlassian.jira.component.ComponentAccessor.getComponent(ComponentAccessor.java:130)
at com.atlassian.jira.component.ComponentAccessor.getJiraAuthenticationContext(ComponentAccessor.java:216