Class JPAKEParticipantTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.bouncycastle.crypto.agreement.test.JPAKEParticipantTest
- All Implemented Interfaces:
junit.framework.Test
public class JPAKEParticipantTest
extends junit.framework.TestCase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
Tests thatJPAKEParticipant
throws appropriateIllegalStateException
s when the methods are called in the wrong order.void
void
Tests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
calls the appropriate validate methods inJPAKEUtil
.void
Tests thatJPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)
calls the appropriate validate methods inJPAKEUtil
.Methods inherited from class junit.framework.TestCase
assertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
-
Constructor Details
-
JPAKEParticipantTest
public JPAKEParticipantTest()
-
-
Method Details
-
testConstruction
- Throws:
CryptoException
-
testSuccessfulExchange
- Throws:
CryptoException
-
testIncorrectPassword
- Throws:
CryptoException
-
testStateValidation
Tests thatJPAKEParticipant
throws appropriateIllegalStateException
s when the methods are called in the wrong order.- Throws:
CryptoException
-
testValidateRound1PayloadReceived
Tests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
calls the appropriate validate methods inJPAKEUtil
. Note thatJPAKEUtilTest
tests the individual validate methods called byJPAKEParticipant
more extensively.- Throws:
CryptoException
-
testValidateRound2PayloadReceived
Tests thatJPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)
calls the appropriate validate methods inJPAKEUtil
. Note thatJPAKEUtilTest
tests the individual validate methods called byJPAKEParticipant
more extensively.- Throws:
CryptoException
-