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 TypeMethodDescriptionvoidvoidvoidTests thatJPAKEParticipantthrows appropriateIllegalStateExceptions when the methods are called in the wrong order.voidvoidTests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)calls the appropriate validate methods inJPAKEUtil.voidTests 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 thatJPAKEParticipantthrows appropriateIllegalStateExceptions when the methods are called in the wrong order.- Throws:
CryptoException
-
testValidateRound1PayloadReceived
Tests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)calls the appropriate validate methods inJPAKEUtil. Note thatJPAKEUtilTesttests the individual validate methods called byJPAKEParticipantmore extensively.- Throws:
CryptoException
-
testValidateRound2PayloadReceived
Tests thatJPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)calls the appropriate validate methods inJPAKEUtil. Note thatJPAKEUtilTesttests the individual validate methods called byJPAKEParticipantmore extensively.- Throws:
CryptoException
-