All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.gov.service.payments.commons.testing.db.PostgresTestHelper Maven / Gradle / Ivy

There is a newer version: 1.0.20241118085938
Show newest version
package uk.gov.service.payments.commons.testing.db;

public abstract class PostgresTestHelper {

    static void startPostgresIfNecessary(String imageTag) {
        PostgresContainer.getOrCreate(imageTag);
    }
    
    static void startPostgresIfNecessary() {
        PostgresContainer.getOrCreate();
    }
    
    public String getConnectionUrl() {
        return PostgresContainer.getConnectionUrl();
    }

    public String getUsername() {
        return PostgresContainer.getUsername();
    }

    public String getPassword() {
        return PostgresContainer.getPassword();
    }

    public static void stop() {
        PostgresContainer.stop();
    }

    public String getDriverClass() {
        return "org.postgresql.Driver";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy