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 void
testConstruction()
void
testIncorrectPassword()
void
testStateValidation()
Tests thatJPAKEParticipant
throws appropriateIllegalStateException
s when the methods are called in the wrong order.void
testSuccessfulExchange()
void
testValidateRound1PayloadReceived()
Tests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
calls the appropriate validate methods inJPAKEUtil
.void
testValidateRound2PayloadReceived()
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 CryptoException
Tests thatJPAKEParticipant
throws appropriateIllegalStateException
s when the methods are called in the wrong order.- Throws:
CryptoException
-
testValidateRound1PayloadReceived
public void testValidateRound1PayloadReceived() throws CryptoException
Tests thatJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload)
calls the appropriate validate methods inJPAKEUtil
. Note thatJPAKEUtilTest
tests the individual validate methods called byJPAKEParticipant
more extensively.- Throws:
CryptoException
-
testValidateRound2PayloadReceived
public void testValidateRound2PayloadReceived() throws CryptoException
Tests thatJPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload)
calls the appropriate validate methods inJPAKEUtil
. Note thatJPAKEUtilTest
tests the individual validate methods called byJPAKEParticipant
more extensively.- Throws:
CryptoException
-
-