org.openuat.authentication.test
Class HostProtocolHandlerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openuat.authentication.test.HostProtocolHandlerTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
HostProtocolHandlerTest_BCAPI, HostProtocolHandlerTest_Mixed1, HostProtocolHandlerTest_Mixed2

public class HostProtocolHandlerTest
extends junit.framework.TestCase


Field Summary
static int PORT
           
protected  boolean useJSSEClient
           
protected  boolean useJSSEServer
           
 
Constructor Summary
HostProtocolHandlerTest(java.lang.String s)
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testCompleteAuthentication_LongPreAuthenticationMode_Client()
           
 void testCompleteAuthentication_LongPreAuthenticationMode_Mutual()
           
 void testCompleteAuthentication_LongPreAuthenticationMode_Server()
           
 void testCompleteAuthentication_LongPreAuthenticationMode_ServerPermanentTwoClients()
           
 void testCompleteAuthentication_OOBVerificationMode()
           
 void testCompleteAuthentication_SecretPreInputMode()
           
 void testCompleteAuthentication_ServerTwoClients()
           
 void testCompleteAuthenticationWithParam()
           
 void testCompleteAuthenticationWithParamAndOpenSockets()
           
 void testReceiveHello()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PORT

public static final int PORT
See Also:
Constant Field Values

useJSSEServer

protected boolean useJSSEServer

useJSSEClient

protected boolean useJSSEClient
Constructor Detail

HostProtocolHandlerTest

public HostProtocolHandlerTest(java.lang.String s)
Method Detail

setUp

public void setUp()
           throws java.lang.InterruptedException,
                  java.io.IOException
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.InterruptedException
java.io.IOException

tearDown

public void tearDown()
              throws java.lang.InterruptedException,
                     java.io.IOException,
                     InternalApplicationException
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.InterruptedException
java.io.IOException
InternalApplicationException

testReceiveHello

public void testReceiveHello()
                      throws java.lang.InterruptedException,
                             java.io.IOException
Throws:
java.lang.InterruptedException
java.io.IOException

testCompleteAuthentication_OOBVerificationMode

public void testCompleteAuthentication_OOBVerificationMode()
                                                    throws java.net.UnknownHostException,
                                                           java.io.IOException,
                                                           java.lang.InterruptedException
Throws:
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException

testCompleteAuthentication_SecretPreInputMode

public void testCompleteAuthentication_SecretPreInputMode()
                                                   throws java.net.UnknownHostException,
                                                          java.io.IOException,
                                                          java.lang.InterruptedException
Throws:
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException

testCompleteAuthentication_LongPreAuthenticationMode_Server

public void testCompleteAuthentication_LongPreAuthenticationMode_Server()
                                                                 throws java.net.UnknownHostException,
                                                                        java.io.IOException,
                                                                        java.lang.InterruptedException,
                                                                        InternalApplicationException
Throws:
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
InternalApplicationException

testCompleteAuthentication_LongPreAuthenticationMode_Client

public void testCompleteAuthentication_LongPreAuthenticationMode_Client()
                                                                 throws java.net.UnknownHostException,
                                                                        java.io.IOException,
                                                                        java.lang.InterruptedException,
                                                                        InternalApplicationException,
                                                                        KeyAgreementProtocolException
Throws:
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
InternalApplicationException
KeyAgreementProtocolException

testCompleteAuthentication_LongPreAuthenticationMode_Mutual

public void testCompleteAuthentication_LongPreAuthenticationMode_Mutual()
                                                                 throws java.net.UnknownHostException,
                                                                        java.io.IOException,
                                                                        java.lang.InterruptedException,
                                                                        InternalApplicationException,
                                                                        KeyAgreementProtocolException
Throws:
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
InternalApplicationException
KeyAgreementProtocolException

testCompleteAuthentication_LongPreAuthenticationMode_ServerPermanentTwoClients

public void testCompleteAuthentication_LongPreAuthenticationMode_ServerPermanentTwoClients()
                                                                                    throws java.net.UnknownHostException,
                                                                                           java.io.IOException,
                                                                                           java.lang.InterruptedException,
                                                                                           InternalApplicationException
Throws:
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
InternalApplicationException

testCompleteAuthentication_ServerTwoClients

public void testCompleteAuthentication_ServerTwoClients()
                                                 throws java.net.UnknownHostException,
                                                        java.io.IOException,
                                                        java.lang.InterruptedException,
                                                        InternalApplicationException
Throws:
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException
InternalApplicationException

testCompleteAuthenticationWithParam

public void testCompleteAuthenticationWithParam()
                                         throws java.net.UnknownHostException,
                                                java.io.IOException,
                                                java.lang.InterruptedException
Throws:
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException

testCompleteAuthenticationWithParamAndOpenSockets

public void testCompleteAuthenticationWithParamAndOpenSockets()
                                                       throws java.net.UnknownHostException,
                                                              java.io.IOException,
                                                              java.lang.InterruptedException
Throws:
java.net.UnknownHostException
java.io.IOException
java.lang.InterruptedException


2005-2009, Rene Mayrhofer.