org.mule.extras.hivemind
Class HiveMindContextTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.mule.tck.AbstractMuleTestCase
              extended byorg.mule.tck.model.AbstractContainerContextTestCase
                  extended byorg.mule.extras.hivemind.HiveMindContextTestCase
All Implemented Interfaces:
Test

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

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

Version:
$Revision: 7976 $
Author:
Massimo Lusetti

Nested Class Summary
 
Nested classes inherited from class org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractMuleTestCase.TestInfo
 
Field Summary
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
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
addTest, disposeManager, doTearDown, finalize, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, isDisabledInThisEnvironment, isDisabledInThisEnvironment, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HiveMindContextTestCase

public HiveMindContextTestCase()
Method Detail

doSetUp

protected void doSetUp()
                throws Exception
Throws:
Exception

getContainerContext

public org.mule.umo.manager.UMOContainerContext getContainerContext()

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.