Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception on CamundaMockit.registerInstance(instance) for static inner class #63

Open
jangalinski opened this issue Aug 15, 2018 · 1 comment
Labels

Comments

@jangalinski
Copy link
Collaborator

jangalinski commented Aug 15, 2018

got a static inner class TaskListener that I register via CamundaMockito.registerInstance(new ...).

The name should be derived from the Component annotation, but I get


java.lang.IncompatibleClassChangeError: ....UnclaimTaskJobHandler and ....UnclaimTaskJobHandler$CreateUnclaimJobOnAssignmentListener disagree on InnerClasses attribute

	at java.lang.Class.getDeclaringClass0(Native Method)
	at java.lang.Class.getDeclaringClass(Class.java:1235)
	at java.lang.Class.getEnclosingClass(Class.java:1277)
	at java.lang.Class.getSimpleBinaryName(Class.java:1443)
	at java.lang.Class.getSimpleName(Class.java:1309)
	at org.camunda.bpm.extension.mockito.function.NameForType.typeOf(NameForType.java:36)
	at org.camunda.bpm.extension.mockito.function.NameForType.juelNameFor(NameForType.java:47)
	at org.camunda.bpm.extension.mockito.Expressions.registerInstance(Expressions.java:175)
	at org.camunda.bpm.extension.mockito.CamundaMockito.registerInstance(CamundaMockito.java:423)
@zambrovski
Copy link
Contributor

Please provide a code example or a failing test.

@jangalinski jangalinski added this to the BACKLOG milestone Apr 29, 2022
@jangalinski jangalinski removed this from the BACKLOG milestone Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants