summaryrefslogtreecommitdiff
path: root/smcc/src/test/java/at/gv/egiz/smcc/test/AbstractCardTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'smcc/src/test/java/at/gv/egiz/smcc/test/AbstractCardTest.java')
-rw-r--r--smcc/src/test/java/at/gv/egiz/smcc/test/AbstractCardTest.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/smcc/src/test/java/at/gv/egiz/smcc/test/AbstractCardTest.java b/smcc/src/test/java/at/gv/egiz/smcc/test/AbstractCardTest.java
index 28ad9090..f6faafe6 100644
--- a/smcc/src/test/java/at/gv/egiz/smcc/test/AbstractCardTest.java
+++ b/smcc/src/test/java/at/gv/egiz/smcc/test/AbstractCardTest.java
@@ -168,7 +168,7 @@ public abstract class AbstractCardTest extends AbstractCardTestBase {
}
- @Test(expected = CancelledException.class)
+ @Test
public void testSignSIGConcurrent() throws SignatureCardException,
InterruptedException, CardNotSupportedException,
NoSuchAlgorithmException, IOException {
@@ -180,10 +180,8 @@ public abstract class AbstractCardTest extends AbstractCardTestBase {
try {
signatureCard.getCertificate(KeyboxName.SECURE_SIGNATURE_KEYPAIR, null);
- assertTrue(false);
- return null;
+ return "123456".toCharArray();
} catch (SignatureCardException e) {
- // expected
throw new CancelledException();
}
@@ -195,7 +193,7 @@ public abstract class AbstractCardTest extends AbstractCardTestBase {
}
- @Test(expected = CancelledException.class)
+ @Test
public void testSignDECConcurrent() throws SignatureCardException,
InterruptedException, CardNotSupportedException,
NoSuchAlgorithmException, IOException {
@@ -207,10 +205,8 @@ public abstract class AbstractCardTest extends AbstractCardTestBase {
try {
signatureCard.getCertificate(KeyboxName.CERTIFIED_KEYPAIR, null);
- assertTrue(false);
- return null;
+ return "1234".toCharArray();
} catch (SignatureCardException e) {
- // expected
throw new CancelledException();
}
}