ch.elca.el4j.tests.core.beans
Class BeanLocatorTest

java.lang.Object
  extended by ch.elca.el4j.tests.core.beans.BeanLocatorTest

public class BeanLocatorTest
extends Object

This test tests the BeanLocator class.

Author:
Martin Zeltner (MZE)
File-location:
BeanLocatorTest
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Field Summary
(package private)  ApplicationContext m_appContext
          The application context.
 
Constructor Summary
BeanLocatorTest()
          Default constructor.
 
Method Summary
private  void checkIfAllExpectedBeansAreInMap(Map beans, String[] expectedBeans)
          This method checks if a map contains the right number of beans and if the expected beans are present in the given map.
 void testLocateClassesOfSpecificTypes()
          This test locates classes of specific types.
 void testLocateClassesOfSpecificTypesPlusExcludeList()
          This test locates classes of specific types and excludes some beans.
 void testLocateClassesOfSpecificTypesPlusIncludeAndExcludeList()
          This test locates classes of specific types and includes and excludes some beans.
 void testLocateClassesOfSpecificTypesPlusIncludeList()
          This test locates classes of specific types and includes some beans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_appContext

final ApplicationContext m_appContext
The application context.

Constructor Detail

BeanLocatorTest

public BeanLocatorTest()
Default constructor.

Method Detail

testLocateClassesOfSpecificTypes

public void testLocateClassesOfSpecificTypes()
This test locates classes of specific types.


testLocateClassesOfSpecificTypesPlusExcludeList

public void testLocateClassesOfSpecificTypesPlusExcludeList()
This test locates classes of specific types and excludes some beans.


testLocateClassesOfSpecificTypesPlusIncludeList

public void testLocateClassesOfSpecificTypesPlusIncludeList()
This test locates classes of specific types and includes some beans.


testLocateClassesOfSpecificTypesPlusIncludeAndExcludeList

public void testLocateClassesOfSpecificTypesPlusIncludeAndExcludeList()
This test locates classes of specific types and includes and excludes some beans.


checkIfAllExpectedBeansAreInMap

private void checkIfAllExpectedBeansAreInMap(Map beans,
                                             String[] expectedBeans)
This method checks if a map contains the right number of beans and if the expected beans are present in the given map.

Parameters:
beans - Are the beans found by BeanLocator
expectedBeans - Are names of the expected beans.


Copyright © 2005-2011 ELCA. All Rights Reserved.