-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Imported transactions unit tests added.
- Loading branch information
1 parent
6414362
commit 7bd9e0d
Showing
47 changed files
with
1,360 additions
and
621 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
407 changes: 301 additions & 106 deletions
407
applet/build/reports/tests/test/classes/tests.AppletTest.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
405 changes: 300 additions & 105 deletions
405
applet/build/test-results/test/TEST-tests.AppletTest.xml
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
applet/build/tmp/compileTestJava/source-classes-mapping.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
tests/MyUpload.java | ||
tests.MyUpload | ||
tests/TransactionsImported.java | ||
tests.TransactionsImported | ||
tests/AppletTest.java | ||
tests.AppletTest | ||
tests/Upload.java | ||
tests.Upload | ||
tests/MyTests.java | ||
tests.MyTests | ||
tests/BaseTest.java | ||
tests.BaseTest | ||
tests/TransactionsImported.java | ||
tests.TransactionsImported | ||
tests/AppletTest.java | ||
tests.AppletTest | ||
tests/ImpTrxUnitTests.java | ||
tests.ImpTrxUnitTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package applet; | ||
|
||
import javacard.framework.APDU; | ||
import javacard.framework.Util; | ||
import static applet.MainApplet.PSBTdata; | ||
|
||
public class FromApplet { | ||
/** | ||
* should be used for small amount of data of size of one packet max | ||
* @param apdu apdu used for communication | ||
* @param array array of data to send | ||
*/ | ||
static void send_data(APDU apdu, byte[] array) | ||
{ | ||
Util.arrayCopyNonAtomic(array, (short) 0, apdu.getBuffer(), (short) 0, (short) array.length); | ||
apdu.setOutgoingAndSend((short) 0, (short) array.length); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.