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 Constructor Description JPAKEParticipantTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestConstruction()voidtestIncorrectPassword()voidtestStateValidation()Tests thatJPAKEParticipantthrows appropriateIllegalStateExceptions when the methods are called in the wrong order.voidtestSuccessfulExchange()voidtestValidateRound1PayloadReceived()Tests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)calls the appropriate validate methods inJPAKEUtil.voidtestValidateRound2PayloadReceived()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
-
-
-
-
Method Detail
-
testConstruction
public void testConstruction() throws CryptoException- Throws:
CryptoException
-
testSuccessfulExchange
public void testSuccessfulExchange() throws CryptoException- Throws:
CryptoException
-
testIncorrectPassword
public void testIncorrectPassword() throws CryptoException- Throws:
CryptoException
-
testStateValidation
public void testStateValidation() throws CryptoExceptionTests thatJPAKEParticipantthrows appropriateIllegalStateExceptions when the methods are called in the wrong order.- Throws:
CryptoException
-
testValidateRound1PayloadReceived
public void testValidateRound1PayloadReceived() throws CryptoExceptionTests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)calls the appropriate validate methods inJPAKEUtil. Note thatJPAKEUtilTesttests the individual validate methods called byJPAKEParticipantmore extensively.- Throws:
CryptoException
-
testValidateRound2PayloadReceived
public void testValidateRound2PayloadReceived() throws CryptoExceptionTests thatJPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)calls the appropriate validate methods inJPAKEUtil. Note thatJPAKEUtilTesttests the individual validate methods called byJPAKEParticipantmore extensively.- Throws:
CryptoException
-
-