org.apache.turbine.services.security

## Class SecurityServiceTest

- java.lang.Object
- - org.apache.fulcrum.testcontainer.BaseUnit4Test
  - - org.apache.turbine.services.security.SecurityServiceTest

-     public class SecurityServiceTest
      extends org.apache.fulcrum.testcontainer.BaseUnit4Test

  Test that the SecurityService works properly by comparing behaviour of Turbine and Fulcrum security services using memory user manager. Code adapted from SecurityServiceAdapter in Fulcrum Security Adapter
  Version:
    $Id$
  Author:
    gkallidis

- - ### Field Summary

    - ### Fields inherited from class org.apache.fulcrum.testcontainer.BaseUnit4Test

      `COMPONENT_APP_ROOT, CONTAINER_ECM, CONTAINER_YAAFI, containerType, defaultLogLevel`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SecurityServiceTest()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `init()`
    `static void` | `setupAfter()`
    `void` | `setUpBefore()`
    `void` | `testAccountExists()`
    `void` | `testCreateUser()`
    `void` | `testGrantUserGroupRole()` Tests Turbine and Fulcrum.

    - ### Methods inherited from class org.apache.fulcrum.testcontainer.BaseUnit4Test

      `getConfigurationFileName, getParameterFileName, getRoleFileName, lookup, release, setConfigurationFileName, setLogLevel, setRoleFileName, tearDown`

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

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

- - ### Constructor Detail

    - #### SecurityServiceTest

          public SecurityServiceTest()

  - ### Method Detail

    - #### init

          public static void init()
                           throws Exception

      Throws:
        `Exception`

    - #### setUpBefore

          public void setUpBefore()
                           throws Exception

      Throws:
        `Exception`

    - #### testAccountExists

          public void testAccountExists()
                                 throws Exception

      Throws:
        `Exception`

    - #### testCreateUser

          public void testCreateUser()
                              throws Exception

      Throws:
        `Exception`

    - #### testGrantUserGroupRole

          public void testGrantUserGroupRole()
                                      throws Exception

      Tests Turbine and Fulcrum. Fulcrum part is similar/duplicated from `AbstractTurbineModelManagerTest.testGrantUserGroupRole()`
      Throws:
        `Exception`

    - #### setupAfter

          public static void setupAfter()

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