public class JPAKEParticipantTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
JPAKEParticipantTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testConstruction() |
void |
testIncorrectPassword() |
void |
testStateValidation()
Tests that
JPAKEParticipant throws appropriate IllegalStateExceptions
when the methods are called in the wrong order. |
void |
testSuccessfulExchange() |
void |
testValidateRound1PayloadReceived()
Tests that
JPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
calls the appropriate validate methods in JPAKEUtil. |
void |
testValidateRound2PayloadReceived()
Tests that
JPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)
calls the appropriate validate methods in JPAKEUtil. |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, failpublic void testConstruction()
throws CryptoException
CryptoExceptionpublic void testSuccessfulExchange()
throws CryptoException
CryptoExceptionpublic void testIncorrectPassword()
throws CryptoException
CryptoExceptionpublic void testStateValidation()
throws CryptoException
JPAKEParticipant throws appropriate IllegalStateExceptions
when the methods are called in the wrong order.CryptoExceptionpublic void testValidateRound1PayloadReceived()
throws CryptoException
JPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
calls the appropriate validate methods in JPAKEUtil.
Note that JPAKEUtilTest tests the individual validate methods
called by JPAKEParticipant more extensively.CryptoExceptionpublic void testValidateRound2PayloadReceived()
throws CryptoException
JPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)
calls the appropriate validate methods in JPAKEUtil.
Note that JPAKEUtilTest tests the individual validate methods
called by JPAKEParticipant more extensively.CryptoException