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: LoadingComponentsTest.java 1812628 2017-10-19 12:34:25Z gk $
  Author:
    Eric Pugh, Siegfried Goeschl

- - ### Field Summary

    - ### Fields inherited from class org.apache.turbine.test.BaseTestCase

      `attributes, maxInactiveInterval`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LoadingComponentsTest()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and 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 AvalonComponentService
    `void` | `testLookupUnknownService()` Lookup up an unknown servie

    - ### Methods inherited from class org.apache.turbine.test.BaseTestCase

      `baseInit, getMockRequest, getPipelineData, getRunData`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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`

    - #### setUp

          public static void setUp()
                            throws Exception

      Throws:
        `Exception`

    - #### tearDown

          public static void tearDown()
                               throws Exception

      Throws:
        `Exception`

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.