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

Quick Search    Search Deep

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

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

public class MappingManagerDefaultTest
extends junit.framework.TestCase


Field Summary
private  javax.naming.directory.Attributes attributes
           
private  org.jellyfish.ConfigurationManagerMock configurationManagerMock
           
private  org.jellyfish.ConnectionManagerMock connectionManagerMock
           
private  mock.org.apache.avalon.framework.logger.LoggerMock loggerMock
           
private  MappingManagerDefault mappingManager
           
private  mock.org.apache.avalon.framework.service.ServiceManagerMock.ServiceManagerMock serviceManagerMock
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
MappingManagerDefaultTest(java.lang.String arg0)
           
 
Method Summary
private  javax.naming.directory.Attributes createAttributes()
           
private  org.jellyfish.config.Config createConfig()
           
private  org.jellyfish.model.Person createPerson()
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 void testGetObjectDn()
           
 void testGetObjectMappingFromAttributes()
           
 void testGetUserDn()
           
 void testMapFromAttributes()
           
 void testMapFromAttributesNestedObject()
           
 void testMapFromAttributesNoObjectclass()
           
 void testMapFromAttributesNullAttribute()
           
 void testMapNestedObjectToAttributes()
           
 void testMapToAttributes()
           
 void testMapToAttributesNullProperty()
           
 
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

mappingManager

private MappingManagerDefault mappingManager

attributes

private javax.naming.directory.Attributes attributes

serviceManagerMock

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

configurationManagerMock

private org.jellyfish.ConfigurationManagerMock configurationManagerMock

connectionManagerMock

private org.jellyfish.ConnectionManagerMock connectionManagerMock

loggerMock

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

MappingManagerDefaultTest

public MappingManagerDefaultTest(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.


createAttributes

private javax.naming.directory.Attributes createAttributes()

createConfig

private org.jellyfish.config.Config createConfig()

createPerson

private org.jellyfish.model.Person createPerson()

testMapToAttributes

public void testMapToAttributes()
                         throws javax.naming.NamingException

testMapToAttributesNullProperty

public void testMapToAttributesNullProperty()
                                     throws javax.naming.NamingException

testMapNestedObjectToAttributes

public void testMapNestedObjectToAttributes()
                                     throws javax.naming.NamingException

testGetObjectDn

public void testGetObjectDn()

testGetUserDn

public void testGetUserDn()

testGetObjectMappingFromAttributes

public void testGetObjectMappingFromAttributes()
                                        throws org.jellyfish.ObjectMapNotFoundException

testMapFromAttributes

public void testMapFromAttributes()
                           throws javax.naming.NamingException

testMapFromAttributesNullAttribute

public void testMapFromAttributesNullAttribute()
                                        throws javax.naming.NamingException

testMapFromAttributesNestedObject

public void testMapFromAttributesNestedObject()
                                       throws javax.naming.NamingException

testMapFromAttributesNoObjectclass

public void testMapFromAttributesNoObjectclass()