org.mule.extras.hivemind
Class HiveMindContextTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.tck.model.AbstractContainerContextTestCase
                  extended by org.mule.extras.hivemind.HiveMindContextTestCase
All Implemented Interfaces:
Test, org.mule.tck.TestCaseWatchdogTimeoutHandler

public class HiveMindContextTestCase
extends org.mule.tck.model.AbstractContainerContextTestCase

Test case for a context container whose backend is an HiveMind Registry


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractMuleTestCase.TestInfo
 
Field Summary
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
IGNORED_DOT_MULE_DIRS, logger
 
Constructor Summary
HiveMindContextTestCase()
           
 
Method Summary
protected  void doSetUp()
           
 org.mule.umo.manager.UMOContainerContext getContainerContext()
           
 void testContainerNotNull()
          Container should never be null
 void testDispose()
          Shouldn't be possibile to get a component after disposing the container
 void testFruitBowl()
          Test the real Registry built to serve the correct services
 void testIllegalState()
          Test getting an object before initializing the Registry
 void testObjectNotFound()
          When an object is not in the Registry
 void testObjectNotFoundByKeyType()
          When an object is not in the Registry caused by a key not recognized
 void testRegistryNotNull()
          Registry should never be null
 
Methods inherited from class org.mule.tck.model.AbstractContainerContextTestCase
getFruitBowlComponentName, testContainerContext, testExternalUMOReference
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
createTestInfo, createWatchdog, disposeManager, doTearDown, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, handleTimeout, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isOffline, run, runBare, setDisposeManagerPerSuite, setUp, suitePostSetUp, suitePostTearDown, suitePreSetUp, suitePreTearDown, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runTest, setName, 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
 

Constructor Detail

HiveMindContextTestCase

public HiveMindContextTestCase()
Method Detail

doSetUp

protected void doSetUp()
                throws Exception
Overrides:
doSetUp in class org.mule.tck.AbstractMuleTestCase
Throws:
Exception

getContainerContext

public org.mule.umo.manager.UMOContainerContext getContainerContext()
Specified by:
getContainerContext in class org.mule.tck.model.AbstractContainerContextTestCase

testContainerNotNull

public void testContainerNotNull()
                          throws Exception
Container should never be null

Throws:
Exception

testRegistryNotNull

public void testRegistryNotNull()
Registry should never be null


testIllegalState

public void testIllegalState()
Test getting an object before initializing the Registry


testObjectNotFound

public void testObjectNotFound()
When an object is not in the Registry


testObjectNotFoundByKeyType

public void testObjectNotFoundByKeyType()
When an object is not in the Registry caused by a key not recognized


testDispose

public void testDispose()
                 throws Exception
Shouldn't be possibile to get a component after disposing the container

Throws:
Exception

testFruitBowl

public void testFruitBowl()
                   throws Exception
Test the real Registry built to serve the correct services

Throws:
Exception


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.