Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jellyfish.implementation
Class ConnectionManagerDefaultTest  view ConnectionManagerDefaultTest download ConnectionManagerDefaultTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jellyfish.implementation.ConnectionManagerDefaultTest
All Implemented Interfaces:
junit.framework.Test

public class ConnectionManagerDefaultTest
extends junit.framework.TestCase


Field Summary
private  org.jellyfish.ConfigurationManagerMock configurationManagerMock
           
private  ConnectionManagerDefault connectionManager
           
private  java.util.Properties createInitialContextProperties
           
private  javax.naming.directory.DirContext initialDirContextMock
           
private  mock.org.apache.avalon.framework.logger.LoggerMock loggerMock
           
private static java.lang.String PASSWORD
           
private  mock.org.apache.avalon.framework.service.ServiceManagerMock.ServiceManagerMock serviceManagerMock
           
private static java.lang.String USERNAME
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ConnectionManagerDefaultTest(java.lang.String arg0)
           
 
Method Summary
private  org.jellyfish.config.Config createConfig()
           
private  ConnectionManagerDefault createConnectionManager()
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 void testGetContextWithBADUserNameAndPassword()
           
 void testGetContextWithUserNameAndBADPassword()
           
 void testGetContextWithUserNameAndPassword()
           
 void testGetInitialContext()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

connectionManager

private ConnectionManagerDefault connectionManager

configurationManagerMock

private org.jellyfish.ConfigurationManagerMock configurationManagerMock

createInitialContextProperties

private java.util.Properties createInitialContextProperties

initialDirContextMock

private javax.naming.directory.DirContext initialDirContextMock

serviceManagerMock

private mock.org.apache.avalon.framework.service.ServiceManagerMock.ServiceManagerMock serviceManagerMock

loggerMock

private mock.org.apache.avalon.framework.logger.LoggerMock loggerMock

USERNAME

private static final java.lang.String USERNAME
See Also:
Constant Field Values

PASSWORD

private static final java.lang.String PASSWORD
See Also:
Constant Field Values
Constructor Detail

ConnectionManagerDefaultTest

public ConnectionManagerDefaultTest(java.lang.String arg0)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


createConnectionManager

private ConnectionManagerDefault createConnectionManager()

createConfig

private org.jellyfish.config.Config createConfig()

testGetInitialContext

public void testGetInitialContext()

testGetContextWithUserNameAndPassword

public void testGetContextWithUserNameAndPassword()
                                           throws java.lang.Exception

testGetContextWithBADUserNameAndPassword

public void testGetContextWithBADUserNameAndPassword()

testGetContextWithUserNameAndBADPassword

public void testGetContextWithUserNameAndBADPassword()
                                              throws java.lang.Exception