org.exolab.jmscts.test.connection
Class AuthTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.exolab.jmscts.core.JMSTestCase
                    |
                    +--org.exolab.jmscts.core.AbstractConnectionFactoryTestCase
                          |
                          +--org.exolab.jmscts.test.connection.AuthTest
All Implemented Interfaces:
ConnectionFactoryTestCase, JMSTest, junit.framework.Test

public class AuthTest
extends AbstractConnectionFactoryTestCase

This class tests connection authorisation

Version:
$Revision: 1.2 $
Author:
Tim Anderson

Constructor Summary
AuthTest(java.lang.String name)
          Create a new AuthTest.
 
Method Summary
static junit.framework.Test suite()
          Sets up the test suite
 void testInvalidQueueAuth()
          Verifies that a QueueConnection cannot be created, when using an invalid username and password
 void testInvalidTopicAuth()
          Verifies that a TopicConnection cannot be created, when using an invalid username and password
 void testQueueAuth()
          Verifies that a QueueConnection can be created, using a valid username and password
 void testTopicAuth()
          Verifies that a TopicConnection can be created, using a valid username and password
 
Methods inherited from class org.exolab.jmscts.core.AbstractConnectionFactoryTestCase
getConnectionFactoryTypes
 
Methods inherited from class org.exolab.jmscts.core.JMSTestCase
getContext, getRequirements, setContext, share
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from interface org.exolab.jmscts.core.JMSTest
getContext, setContext, share
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

AuthTest

public AuthTest(java.lang.String name)
Create a new AuthTest.
Parameters:
name - the name of test case
Method Detail

suite

public static junit.framework.Test suite()
Sets up the test suite
Returns:
an instance of this class that may be run by JMSTestRunner

testQueueAuth

public void testQueueAuth()
                   throws java.lang.Exception
Verifies that a QueueConnection can be created, using a valid username and password
Throws:
java.lang.Exception - for any error

testInvalidQueueAuth

public void testInvalidQueueAuth()
                          throws java.lang.Exception
Verifies that a QueueConnection cannot be created, when using an invalid username and password
Throws:
java.lang.Exception - for any error

testTopicAuth

public void testTopicAuth()
                   throws java.lang.Exception
Verifies that a TopicConnection can be created, using a valid username and password
Throws:
java.lang.Exception - for any error

testInvalidTopicAuth

public void testInvalidTopicAuth()
                          throws java.lang.Exception
Verifies that a TopicConnection cannot be created, when using an invalid username and password
Throws:
java.lang.Exception - for any error


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.