Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[JCDK24.1][AMService] Generating Applet Code Coverage Using CAP Files with AMService API

Ganesh DeshmukhMar 20 2025

1. Set up JCDK 24.1 Tools, Simulator, and Eclipse Plugin following the official guidelines.

2. Developed an Applet and successfully generated the corresponding CAP file.

3. Created a separate project for Unit Tests using the AMService API:

  • Initialized a Terminal using the `getTerminal()` API.
  • Created an AMS object using `AMServiceFactory.getInstance(gp2.2)`.
  • Loaded the applet and installed the applet instance with the AMS object.
  • Exchanged APDU command responses as part of the Unit Tests.

With this setup, how to instrument Eclipse and JaCoCo to generate **Applet Code Coverage** for the executed Unit Tests?

Comments
Post Details
Added on Mar 20 2025
1 comment
215 views