Skip to content

Commit

Permalink
Minor test case fixes for get nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratler committed Aug 9, 2011
1 parent ebb409e commit 33c972d
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -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();
Expand All @@ -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());
Expand Down

0 comments on commit 33c972d

Please sign in to comment.