Package org.apache.turbine.services
Class LoadingComponentsTest
- java.lang.Object
-
- org.apache.turbine.test.BaseTestCase
-
- org.apache.turbine.services.LoadingComponentsTest
-
public class LoadingComponentsTest extends BaseTestCase
Unit test for verifing that we can load all the appropriate components from the appropriate Container. For now that is just ECM (AvalonComponentService) but in the future with mixed containers there could be multiple.- Version:
- $Id$
- Author:
- Eric Pugh, Siegfried Goeschl
-
-
Field Summary
-
Fields inherited from class org.apache.turbine.test.BaseTestCase
attributes, maxInactiveInterval
-
-
Constructor Summary
Constructors Constructor Description LoadingComponentsTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
setUp()
static void
tearDown()
void
testAvalonComponentServiceShutdown()
Shutdown the AvalonComponentService where the MimeTypeService resides and lookup the MimeTypeService.void
testLoadingByAvalonComponentService()
Test to load a couple of Avalon services directly by the AvalonComponentService.void
testLoadingByTurbineServices()
Test to load a couple of Avalon services by using the TurbineServices which delegate the service retrieval to the AvalonComponentServicevoid
testLookupUnknownService()
Lookup up an unknown servie-
Methods inherited from class org.apache.turbine.test.BaseTestCase
baseInit, getMockRequest, getPipelineData, getRunData
-
-
-
-
Constructor Detail
-
LoadingComponentsTest
public LoadingComponentsTest()
-
-
Method Detail
-
testLoadingByAvalonComponentService
public void testLoadingByAvalonComponentService() throws Exception
Test to load a couple of Avalon services directly by the AvalonComponentService.- Throws:
Exception
- loading failed
-
testLoadingByTurbineServices
public void testLoadingByTurbineServices() throws Exception
Test to load a couple of Avalon services by using the TurbineServices which delegate the service retrieval to the AvalonComponentService- Throws:
Exception
- loading failed
-
testLookupUnknownService
public void testLookupUnknownService() throws Exception
Lookup up an unknown servie- Throws:
Exception
-
testAvalonComponentServiceShutdown
public void testAvalonComponentServiceShutdown() throws Exception
Shutdown the AvalonComponentService where the MimeTypeService resides and lookup the MimeTypeService. This should trigger a late initialization of AvalonComponentService and returns a fully functional MimeTypeService.- Throws:
Exception
-
-