PHP Class AppserverIo\Appserver\Application\ApplicationTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: appserver-io/appserver

Protected Properties

Property Type Description
$application Application The application instance we want to test.
$classLoaders AppserverIo\Storage\GenericStackable The storage for the class loaders.
$data AppserverIo\Storage\StackableStorage The storage for the naming directory data.
$managers AppserverIo\Storage\GenericStackable The storage for the managers.

Public Methods

Method Description
setUp ( ) : void Initialize the instance to test.
testAddClassLoader ( ) : void Test if the class loader has been added successfully.
testAddManager ( ) : void Test if the manager instance has been added successfully.
testConstructor ( ) : void Test if the application has successfully been initialized.
testGetAppBase ( ) : void Test if the getter/setter for the app base works.
testGetBaseDirectory ( ) : void Test if the getter/setter for the base directory works.
testGetBaseDirectoryWithDirectoryToAppend ( ) : void Test if the passed directory will be appended correctly.
testGetCacheDir ( ) : void Test if the getter for the cache dir works.
testGetClassLoader ( ) : void Test if the getter for a certain class loader works.
testGetGroup ( ) : void Test if the getter for the group works.
testGetInvalidManager ( ) : void Test if the NULL will be returned for an invalid manager request.
testGetManagers ( ) : void Test if the added manager has been returned.
testGetName ( ) : void Test if the getter/setter for the application name works.
testGetSessionDir ( ) : void Test if the getter for the session dir works.
testGetUmask ( ) : void Test if the getter for the group works.
testGetUser ( ) : void Test if the getter for the user works.
testGetWebappPath ( ) : void Test if the getter for the webapp path works.
testInitializeManagers ( ) : void Test if the managers has been initialized successfully.
testInjectGetClassLoaders ( ) : void Test if the getter/setter for the class loaders works.
testInjectGetInitialContext ( ) : void Test if the getter/setter for the initial context works.
testInjectGetManagers ( ) : void Test if the getter/setter for the managers works.
testNewService ( ) : void Test if the newService() method will be forwarded to the initial context.
testRegisterClassLoaders ( ) : void Test if the class loaders has been registered successfully.
testSetGetAttribute ( ) : void Test if the class loader has been added successfully.

Method Details

setUp() public method

Initialize the instance to test.
public setUp ( ) : void
return void

testAddClassLoader() public method

Test if the class loader has been added successfully.
public testAddClassLoader ( ) : void
return void

testAddManager() public method

Test if the manager instance has been added successfully.
public testAddManager ( ) : void
return void

testConstructor() public method

Test if the application has successfully been initialized.
public testConstructor ( ) : void
return void

testGetAppBase() public method

Test if the getter/setter for the app base works.
public testGetAppBase ( ) : void
return void

testGetBaseDirectory() public method

Test if the getter/setter for the base directory works.
public testGetBaseDirectory ( ) : void
return void

testGetBaseDirectoryWithDirectoryToAppend() public method

Test if the passed directory will be appended correctly.

testGetCacheDir() public method

Test if the getter for the cache dir works.
public testGetCacheDir ( ) : void
return void

testGetClassLoader() public method

Test if the getter for a certain class loader works.
public testGetClassLoader ( ) : void
return void

testGetGroup() public method

Test if the getter for the group works.
public testGetGroup ( ) : void
return void

testGetInvalidManager() public method

Test if the NULL will be returned for an invalid manager request.
public testGetInvalidManager ( ) : void
return void

testGetManagers() public method

Test if the added manager has been returned.
public testGetManagers ( ) : void
return void

testGetName() public method

Test if the getter/setter for the application name works.
public testGetName ( ) : void
return void

testGetSessionDir() public method

Test if the getter for the session dir works.
public testGetSessionDir ( ) : void
return void

testGetUmask() public method

Test if the getter for the group works.
public testGetUmask ( ) : void
return void

testGetUser() public method

Test if the getter for the user works.
public testGetUser ( ) : void
return void

testGetWebappPath() public method

Test if the getter for the webapp path works.
public testGetWebappPath ( ) : void
return void

testInitializeManagers() public method

Test if the managers has been initialized successfully.
public testInitializeManagers ( ) : void
return void

testInjectGetClassLoaders() public method

Test if the getter/setter for the class loaders works.
public testInjectGetClassLoaders ( ) : void
return void

testInjectGetInitialContext() public method

Test if the getter/setter for the initial context works.
public testInjectGetInitialContext ( ) : void
return void

testInjectGetManagers() public method

Test if the getter/setter for the managers works.
public testInjectGetManagers ( ) : void
return void

testNewService() public method

Test if the newService() method will be forwarded to the initial context.
public testNewService ( ) : void
return void

testRegisterClassLoaders() public method

Test if the class loaders has been registered successfully.
public testRegisterClassLoaders ( ) : void
return void

testSetGetAttribute() public method

Test if the class loader has been added successfully.
public testSetGetAttribute ( ) : void
return void

Property Details

$application protected property

The application instance we want to test.
protected Application,AppserverIo\Appserver\Application $application
return Application

$classLoaders protected property

The storage for the class loaders.
protected GenericStackable,AppserverIo\Storage $classLoaders
return AppserverIo\Storage\GenericStackable

$data protected property

The storage for the naming directory data.
protected StackableStorage,AppserverIo\Storage $data
return AppserverIo\Storage\StackableStorage

$managers protected property

The storage for the managers.
protected GenericStackable,AppserverIo\Storage $managers
return AppserverIo\Storage\GenericStackable