PHP Class AppserverIo\Appserver\Core\Api\AppServiceTest

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

Protected Properties

Свойство Type Description
$appService PHPUnit_Framework_MockObject_MockObject | AppService The app service instance to test.

Méthodes publiques

Méthode 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 méthode

Initializes the service instance to test.
public setUp ( ) : null
Résultat null

testCleanUpFolders() public méthode

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

testCreateTmpFolders() public méthode

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

testDeploy() public méthode

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

testFindAll() public méthode

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

testFindAllByName() public méthode

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

testGetExtractor() public méthode

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

testGetExtractorWithoutDefaultConfiguration() public méthode

Tests if are able to run through the method

testInjectExtractor() public méthode

Tests if we are able to inject our extractor
public testInjectExtractor ( ) : null
Résultat null

testLoad() public méthode

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

testLoadByWebappPath() public méthode

Tests if we can load a webapp by path
public testLoadByWebappPath ( ) : null
Résultat null

testLoadWithInvalidPrimaryKey() public méthode

Test if the load() method returns the NULL for an invalid primary key.
public testLoadWithInvalidPrimaryKey ( ) : null
Résultat null

testNewFromApplication() public méthode

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

testPersist() public méthode

Tests if we can persist apps into our configuration
public testPersist ( ) : null
Résultat null

testSoak() public méthode

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

testUndeploy() public méthode

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

testUndeployInvalidUuid() public méthode

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

Property Details

$appService protected_oe property

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