PHP Class AppserverIo\Appserver\Core\Api\AppServiceTest

Author: Bernhard Wick ([email protected])
Author: Tim Wagner ([email protected])
Inheritance: extends AppserverIo\Appserver\Core\Api\AbstractServicesTest
Show file Open project: appserver-io/appserver

Protected Properties

Property Type Description
$appService PHPUnit_Framework_MockObject_MockObject | AppService The app service instance to test.

Public Methods

Method Description
setUp ( ) : null Initializes the service instance to test.
testCleanUpFolders ( ) : null Tests if we are able to clear the tmp directory of an application
testCreateTmpFolders ( ) : null Tests if we can create the tmp directories a passed application needs
testDeploy ( ) : null Tests if we will run through the deploy process without an error
testFindAll ( ) : null Test if the findAll() method returns the correct number of elements.
testFindAllByName ( ) : null Test if the findAllByName() method returns the correct number of elements.
testGetExtractor ( ) : null Tests if are able to always get an extractor, either default or injected one
testGetExtractorWithoutDefaultConfiguration ( ) : null Tests if are able to run through the method
testInjectExtractor ( ) : null Tests if we are able to inject our extractor
testLoad ( ) : null Test if the load() method returns the correct app node.
testLoadByWebappPath ( ) : null Tests if we can load a webapp by path
testLoadWithInvalidPrimaryKey ( ) : null Test if the load() method returns the NULL for an invalid primary key.
testNewFromApplication ( ) : null Will test if we can successfully add an app to the configuration based on a given application object
testPersist ( ) : null Tests if we can persist apps into our configuration
testSoak ( ) : null Tests if we can soak an archive without receiving an exception
testUndeploy ( ) : null If we can run the un-deploy functionality without receiving an error
testUndeployInvalidUuid ( ) : null If we can determine if a passed UUID is an invalid one

Method Details

setUp() public method

Initializes the service instance to test.
public setUp ( ) : null
return null

testCleanUpFolders() public method

Tests if we are able to clear the tmp directory of an application
public testCleanUpFolders ( ) : null
return null

testCreateTmpFolders() public method

Tests if we can create the tmp directories a passed application needs
public testCreateTmpFolders ( ) : null
return null

testDeploy() public method

Tests if we will run through the deploy process without an error
public testDeploy ( ) : null
return null

testFindAll() public method

Test if the findAll() method returns the correct number of elements.
public testFindAll ( ) : null
return null

testFindAllByName() public method

Test if the findAllByName() method returns the correct number of elements.
public testFindAllByName ( ) : null
return null

testGetExtractor() public method

Tests if are able to always get an extractor, either default or injected one
public testGetExtractor ( ) : null
return null

testGetExtractorWithoutDefaultConfiguration() public method

Tests if are able to run through the method

testInjectExtractor() public method

Tests if we are able to inject our extractor
public testInjectExtractor ( ) : null
return null

testLoad() public method

Test if the load() method returns the correct app node.
public testLoad ( ) : null
return null

testLoadByWebappPath() public method

Tests if we can load a webapp by path
public testLoadByWebappPath ( ) : null
return null

testLoadWithInvalidPrimaryKey() public method

Test if the load() method returns the NULL for an invalid primary key.

testNewFromApplication() public method

Will test if we can successfully add an app to the configuration based on a given application object
public testNewFromApplication ( ) : null
return null

testPersist() public method

Tests if we can persist apps into our configuration
public testPersist ( ) : null
return null

testSoak() public method

Tests if we can soak an archive without receiving an exception
public testSoak ( ) : null
return null

testUndeploy() public method

If we can run the un-deploy functionality without receiving an error
public testUndeploy ( ) : null
return null

testUndeployInvalidUuid() public method

If we can determine if a passed UUID is an invalid one
public testUndeployInvalidUuid ( ) : null
return null

Property Details

$appService protected property

The app service instance to test.
protected PHPUnit_Framework_MockObject_MockObject|AppService,AppserverIo\Appserver\Core\Api $appService
return PHPUnit_Framework_MockObject_MockObject | AppService