Permalink
Browse files

Minor test case fixes for get nonce

  • Loading branch information...
1 parent ebb409e commit 33c972dcb859e0e196eacc6983655e6a0e799f64 @Ratler committed Aug 9, 2011
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/test/java/org/unitedid/yhsm/internal/NonceGetCmdTest.java
@@ -20,18 +20,13 @@
import org.junit.After;
import org.junit.Before;
-import org.junit.Rule;
import org.junit.Test;
-import org.junit.rules.ExpectedException;
import org.unitedid.yhsm.SetupCommon;
import static junit.framework.Assert.assertEquals;
public class NonceGetCmdTest extends SetupCommon {
- @Rule
- public ExpectedException thrown = ExpectedException.none();
-
@Before
public void setUp() throws Exception {
super.setUp();
@@ -43,7 +38,7 @@ public void tearDown() throws Exception {
}
@Test
- public void testNonceGet() throws YubiHSMErrorException {
+ public void testNonceGet() throws YubiHSMErrorException, YubiHSMCommandFailedException {
Nonce nonce1 = hsm.getNonce((short) 1);
Nonce nonce2 = hsm.getNonce((short) 1);
assertEquals(nonce1.getNonceInt() + 1, nonce2.getNonceInt());

0 comments on commit 33c972d

Please sign in to comment.