Class SandboxAppsStarter
- java.lang.Object
-
- de.adorsys.opba.protocol.xs2a.testsandbox.SandboxAppsStarter
-
- All Implemented Interfaces:
AutoCloseable
public class SandboxAppsStarter extends Object implements AutoCloseable
Allows to start all sandbox (they imitate bank / ASPSP) applications.
-
-
Field Summary
Fields Modifier and Type Field Description static Set<SandboxApp>ALL
-
Constructor Summary
Constructors Constructor Description SandboxAppsStarter()SandboxAppsStarter(Map<SandboxApp,Integer> dockerPorts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitForAllStarted()voidawaitForAllStarted(Duration atMost)voidawaitForAllStopped()Note that at this moment this function is usable only for docker-container starter, not for JAR-based appsvoidawaitForAllStopped(Duration atMost)Note that at this moment this function is usable only for docker-container starter, not for JAR-based appsvoidclose()StarterContextrun(Set<SandboxApp> apps)StarterContextrunAll()voidshutdown()
-
-
-
Field Detail
-
ALL
public static final Set<SandboxApp> ALL
-
-
Constructor Detail
-
SandboxAppsStarter
public SandboxAppsStarter()
-
SandboxAppsStarter
public SandboxAppsStarter(Map<SandboxApp,Integer> dockerPorts)
-
-
Method Detail
-
run
public StarterContext run(Set<SandboxApp> apps)
-
runAll
public StarterContext runAll()
-
awaitForAllStarted
public void awaitForAllStarted(Duration atMost)
-
awaitForAllStopped
public void awaitForAllStopped(Duration atMost)
Note that at this moment this function is usable only for docker-container starter, not for JAR-based apps
-
awaitForAllStarted
public void awaitForAllStarted()
-
awaitForAllStopped
public void awaitForAllStopped()
Note that at this moment this function is usable only for docker-container starter, not for JAR-based apps
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()
-
-