aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ08nY2018-04-25 20:20:46 +0200
committerJ08nY2018-04-25 20:20:46 +0200
commit34652ac2cad6a030ed9a149418a42212874e5ca8 (patch)
tree4f3ea1f7a7d90423fbbb6d4973d24af5fd09863b /src
parent8449365ffddd19306047495e8fc107b07d4d6dbe (diff)
downloadECTester-34652ac2cad6a030ed9a149418a42212874e5ca8.tar.gz
ECTester-34652ac2cad6a030ed9a149418a42212874e5ca8.tar.zst
ECTester-34652ac2cad6a030ed9a149418a42212874e5ca8.zip
Change wrong test suite.
Diffstat (limited to 'src')
-rw-r--r--src/cz/crcs/ectester/reader/test/CardWrongCurvesSuite.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cz/crcs/ectester/reader/test/CardWrongCurvesSuite.java b/src/cz/crcs/ectester/reader/test/CardWrongCurvesSuite.java
index ab38ddc..4e8fec4 100644
--- a/src/cz/crcs/ectester/reader/test/CardWrongCurvesSuite.java
+++ b/src/cz/crcs/ectester/reader/test/CardWrongCurvesSuite.java
@@ -77,7 +77,7 @@ public class CardWrongCurvesSuite extends CardTestSuite {
byte curve = EC_Consts.getCurve(keyLength, KeyPair.ALG_EC_FP);
Test key = runTest(CommandTest.expect(new Command.Allocate(this.card, ECTesterApplet.KEYPAIR_BOTH, keyLength, KeyPair.ALG_EC_FP), ExpectedValue.SUCCESS));
if (!key.ok()) {
- doTest(key);
+ doTest(CompoundTest.all(ExpectedValue.SUCCESS, "No support for " + keyLength + "b ALG_EC_FP.", key));
continue;
}
Test set = runTest(CommandTest.expect(new Command.Set(this.card, ECTesterApplet.KEYPAIR_BOTH, curve, EC_Consts.PARAMETERS_DOMAIN_FP, null), ExpectedValue.SUCCESS));
@@ -113,7 +113,7 @@ public class CardWrongCurvesSuite extends CardTestSuite {
byte curve = EC_Consts.getCurve(keyLength, KeyPair.ALG_EC_F2M);
Test key = runTest(CommandTest.expect(new Command.Allocate(this.card, ECTesterApplet.KEYPAIR_BOTH, keyLength, KeyPair.ALG_EC_F2M), ExpectedValue.SUCCESS));
if (!key.ok()) {
- doTest(key);
+ doTest(CompoundTest.all(ExpectedValue.SUCCESS, "No support for " + keyLength + "b ALG_EC_F2M.", key));
continue;
}
Test set = runTest(CommandTest.expect(new Command.Set(this.card, ECTesterApplet.KEYPAIR_BOTH, curve, EC_Consts.PARAMETERS_DOMAIN_F2M, null), ExpectedValue.SUCCESS));