Keel 2.1RC2

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

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

public final class DefaultComponentSelectorTestCase
extends junit.framework.TestCase

Test the basic public methods of DefaultComponentSelector.

Author:

Nested Class Summary
(package private)  class DefaultComponentSelectorTestCase.FeatureComponent
           
(package private)  class DefaultComponentSelectorTestCase.Hint
           
 
Field Summary
private  DefaultComponentSelector m_componentSelector
           
protected  boolean m_exceptionThrown
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DefaultComponentSelectorTestCase()
           
DefaultComponentSelectorTestCase(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testhasComponent()
           
 void testlookup()
          lookup contract: return the component that was put with this hint if no compnent exist for hint throw ComponentException
 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_componentSelector

private DefaultComponentSelector m_componentSelector

m_exceptionThrown

protected boolean m_exceptionThrown
Constructor Detail

DefaultComponentSelectorTestCase

public DefaultComponentSelectorTestCase()

DefaultComponentSelectorTestCase

public DefaultComponentSelectorTestCase(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

testlookup

public void testlookup()
                throws java.lang.Exception
lookup contract: return the component that was put with this hint if no compnent exist for hint throw ComponentException

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.