简体   繁体   English

如何在IntelliJ中测试java卡小程序

[英]how to test java card applet in IntelliJ

I use IntelliJ IDEA JavaCard Project Template to develop my java card applet.我使用IntelliJ IDEA JavaCard 项目模板来开发我的 Java 卡小程序。 But how could I test my code if it is correct?但是,如果我的代码正确,我怎么能测试它呢?

I know Esclipe has a Plugin named JCOP which can easily test the java card applet, but I love IntelliJ more...我知道 Esclipe 有一个名为 JCOP 的插件,它可以轻松测试 java 卡小程序,但我更喜欢 IntelliJ...

There is another tool: jcardsim .还有另一个工具: jcardsim Do anyone know how to use it in IntelliJ?有谁知道如何在 IntelliJ 中使用它?

I made a similar project template for gradle: https://github.com/ph4r05/javacard-gradle-template我为gradle做了一个类似的项目模板: https : //github.com/ph4r05/javacard-gradle-template

It is very similar to the template you use so migration should be really just copy-paste.它与您使用的模板非常相似,因此迁移应该只是复制粘贴。 It already contains a HelloWorld applet in the module applet and basic unit test in the module tester .它已经包含在模块的HelloWorld的applet applet和基本单元测试的模块tester

The project template uses JCardSim for the testing.项目模板使用 JCardSim 进行测试。 Give it a try.试一试。

Template usage:模板用法:

git clone https://github.com/ph4r05/javacard-gradle-template.git

cd javacard-gradle-template
git submodule init
git submodule update

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM