Enum SandboxApp

  • All Implemented Interfaces:
    Serializable, Comparable<SandboxApp>

    public enum SandboxApp
    extends Enum<SandboxApp>
    This class launches spring-fat jar in its own class loader (we assume runnable(StarterContext) is called in own thread). This way all services are launched in same JVM and we can easily manipulate their state. Shared context (except system classes!) is not a problem, because it is shaded by Spring - each application has its own class loader and context. Each application will receive spring profile based on its lowercase name. I.e. LEDGERS_GATEWAY assumes to have sandbox/application-test-ledgers-gateway.yml as well as common sandbox/application-test-common.yml property files on resources path. You can specify database type using System property / Environment variable (in order of precedence) `DB_TYPE`: 1. DB_TYPE = LOCAL_POSTGRES - will connect to local postgres db on port 5432 2. (DEFAULT) DB_TYPE = TEST_CONTAINERS_POSTGRES - will start Postgres using TestContainers and use port 15432 for it (you need to prepare schema and users - see prepare-postgres.sql) Startup order is roughly adherent to: https://github.com/adorsys/XS2A-Sandbox/blob/master/docker-compose.yml
    • Enum Constant Detail

      • ONLINE_BANKING_UI

        public static final SandboxApp ONLINE_BANKING_UI
      • LEDGERS_APP

        public static final SandboxApp LEDGERS_APP
      • LEDGERS_GATEWAY

        public static final SandboxApp LEDGERS_GATEWAY
      • ASPSP_PROFILE

        public static final SandboxApp ASPSP_PROFILE
      • CONSENT_MGMT

        public static final SandboxApp CONSENT_MGMT
      • ONLINE_BANKING

        public static final SandboxApp ONLINE_BANKING
      • TPP_REST

        public static final SandboxApp TPP_REST
      • CERT_GENERATOR

        public static final SandboxApp CERT_GENERATOR
    • Method Detail

      • values

        public static SandboxApp[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SandboxApp c : SandboxApp.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SandboxApp valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • allReadyToUse

        public static boolean allReadyToUse​(StarterContext ctx)
      • countReadyToUse

        public static long countReadyToUse​(StarterContext ctx)
      • extraProfiles

        public Set<String> extraProfiles()