Use Of Unit test Mockito Java library in MicroEJ applications

Hey @tdelhomenie ,
Thanks for your help. I was able to fetch and use Mockito in the test class. But still, I’m getting errors while running or building the project and it looks like MicroEJ SDK runs the Junit test on MicroEJTest Suite (MicroEJ VM), and from my understanding, Mockito library is purely a Java-based library. To resolve this issue I followed the existing thread on the forum https://forum.microej.com/t/unit-tests-with-mockito/957 and I have added these two lines in projects module.Ivy file to run the test on standard J2SE VM <ea:plugin org=“com.is2t.easyant.plugins” module=“microej-junit” revision=“1.0.+”/>
<ea:property name=“skip.com.is2t.easyant.plugins#microej-testsuite;[3.3.0-RC0,4.0.0-RC0[” value=“true” />.

Console log error message :
"Found an error when building Calculator
Where:

File : D:\Installed software\rcp\configuration\org.eclipse.osgi\9\data\repositories\microej-build-repository\com\is2t\easyant\plugins\microej-testsuite\4.2.0\microej-testsuite-4.2.0.ant
Line : 322 column : 98

  • Problem Report:"

Dependency added to run tests on J2SE VM:

<info organisation="Calculator" module="Calculator" status="integration" revision="0.1.0">
	<ea:build organisation="com.is2t.easyant.buildtypes" module="build-microej-javalib" revision="6.2.+">
		<ea:property name="test.run.includes.pattern" value="**/_AllTests_*.class"/>
	<ea:plugin org="com.is2t.easyant.plugins" module="microej-junit" revision="2.0.0"/> **
          <ea:property name="skip.com.is2t.easyant.plugins#microej-testsuite;[5.6.0-RC0,5.6.0-RC0[" 
          value="true" />
	</ea:build>
</info>