Class ServiceManagerTest
java.lang.Object
test.de.iip_ecosphere.platform.services.ServiceManagerTest
Tests
ServiceManager.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classAvailability predicate that always returnstrueand records tested connection names.(package private) static interfaceA method execution without parameters potentially causing an exception. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <T> voidassertCollection(Collection<T> collection, T... expected) Asserts the contents of a collection without considering the sequence.private static voidassertContains(Set<de.iip_ecosphere.platform.services.AbstractServiceManager.TypedDataConnection> conn, String... cIds) Asserts thatconncontains allcIds.(package private) static voidAsserts that an exception occurred, e.g., asfuncis currently not implemented.(package private) static <T> voidassertList(List<T> list, T... expected) Asserts the contents of a list with considering the sequence.voidTestsAbstractServiceManager.determineExternalConnections(ServiceManager, String...).voidTestsAbstractServiceManager.determineInternalConnections(ServiceManager, String...).voidTestsAbstractServiceManager.determineInternalConnections(ServiceManager, String...).voidtestMgr()TestsServiceManager.voidTests basic application id related functions.voidTests forAbstractServiceManager.sortByDependency(List, Collection, Predicate, boolean)with other services.voidBasic tests forAbstractServiceManager.sortByDependency(List, Collection, Predicate, boolean).voidTests forAbstractServiceManager.sortByDependency(List, Collection, Predicate, boolean)for ensembles.
-
Constructor Details
-
ServiceManagerTest
public ServiceManagerTest()
-
-
Method Details
-
testMgr
TestsServiceManager.- Throws:
ExecutionException- shall not occurURISyntaxException- shall not occur
-
testMgrAppId
Tests basic application id related functions.- Throws:
ExecutionException- shall not occur in a successful runURISyntaxException- shall not occur in a successful run
-
testExternalConnections
TestsAbstractServiceManager.determineExternalConnections(ServiceManager, String...).- Throws:
ExecutionException- shall not occur in a successful runURISyntaxException- shall not occur in a successful run
-
testInternalConnections
TestsAbstractServiceManager.determineInternalConnections(ServiceManager, String...).- Throws:
ExecutionException- shall not occur in a successful runURISyntaxException- shall not occur in a successful run
-
testFunctionalConnections
TestsAbstractServiceManager.determineInternalConnections(ServiceManager, String...).- Throws:
ExecutionException- shall not occur in a successful runURISyntaxException- shall not occur in a successful run
-
assertContains
private static void assertContains(Set<de.iip_ecosphere.platform.services.AbstractServiceManager.TypedDataConnection> conn, String... cIds) Asserts thatconncontains allcIds.- Parameters:
conn- the connect to check the ids forcIds- the connection ids to assert for
-
assertException
Asserts that an exception occurred, e.g., asfuncis currently not implemented.- Parameters:
func- the function to execute
-
testSortByDependencyBasic
public void testSortByDependencyBasic()Basic tests forAbstractServiceManager.sortByDependency(List, Collection, Predicate, boolean). -
testSortByDependency
Tests forAbstractServiceManager.sortByDependency(List, Collection, Predicate, boolean)with other services.- Throws:
URISyntaxException- shall not occur in a successful run
-
testSortByDependencyEnsemble
Tests forAbstractServiceManager.sortByDependency(List, Collection, Predicate, boolean)for ensembles.- Throws:
URISyntaxException- shall not occur
-
assertList
Asserts the contents of a list with considering the sequence.- Type Parameters:
T- the element type- Parameters:
list- the listexpected- the expected elements and sequence
-
assertCollection
Asserts the contents of a collection without considering the sequence.- Type Parameters:
T- the element type- Parameters:
collection- the collectionexpected- the expected elements
-