vscode-java-test icon indicating copy to clipboard operation
vscode-java-test copied to clipboard

'Cannot find implementation' for mapstruct mappers

Open pumano opened this issue 3 years ago • 1 comments

I prepare repo: https://github.com/pumano/vscode-mapstruct-tests just check via gradle clean test and then try to run via vscode.

You got java.lang.ExceptionInInitializerError which Caused by: java.lang.ClassNotFoundException: Cannot find implementation for com.example.vscode.mapstructdemo.mappers.ExampleMapper

looks like path to generated code not included to tests.

Also I link this issue with issue in redhat repo: https://github.com/redhat-developer/vscode-java/issues/1660

pumano avatar Apr 10 '21 21:04 pumano

Can any one tel the answer for this. In my case implementation class got generated but its not able to detect the impl class while performing unit testing

mrvigneshmca avatar Oct 18 '21 04:10 mrvigneshmca