Keel 2.1RC2

org.apache.avalon.framework.component.test
Class DefaultComponentManagerTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.avalon.framework.component.test.DefaultComponentManagerTestCase
All Implemented Interfaces:
junit.framework.Test

public final class DefaultComponentManagerTestCase
extends junit.framework.TestCase

Test the basic public methods of DefaultComponentManager.

Author:

Nested Class Summary
(package private)  class DefaultComponentManagerTestCase.DefaultRoleA
           
(package private)  class DefaultComponentManagerTestCase.DefaultRoleB
           
 
Field Summary
private  DefaultComponentManager m_componentManager
           
protected  boolean m_exceptionThrown
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DefaultComponentManagerTestCase()
           
DefaultComponentManagerTestCase(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testhasComponent()
           
 void testlookup1()
          lookup contract: return first component found for role search in hirarchy from current componentManager up.
 void testlookup2()
           
 void testmakeReadOnly()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

m_componentManager

private DefaultComponentManager m_componentManager

m_exceptionThrown

protected boolean m_exceptionThrown
Constructor Detail

DefaultComponentManagerTestCase

public DefaultComponentManagerTestCase()

DefaultComponentManagerTestCase

public DefaultComponentManagerTestCase(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testlookup1

public void testlookup1()
                 throws java.lang.Exception
lookup contract: return first component found for role search in hirarchy from current componentManager up. if no compnent exist for role a in hierarchy throw ComponentException

Throws:
java.lang.Exception

testlookup2

public void testlookup2()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testhasComponent

public void testhasComponent()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testmakeReadOnly

public void testmakeReadOnly()
                      throws java.lang.Exception
Throws:
java.lang.Exception

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.