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

org.zapodot.junit.db.plugin.InitializationPlugin Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.zapodot.junit.db.plugin;

import java.sql.Connection;

/**
 * An interface for creating custom initialization code for instance using Liquibase, Flyway or similar.
 *
 * @author zapodot
 */
public interface InitializationPlugin {

    /**
     * Invoked by {@link org.zapodot.junit.db.EmbeddedDatabaseRule} after the in-memory database has been created
     *
     * @param name       the name of the in-memory H2 databaase
     * @param connection a connection to the database
     */
    void connectionMade(final String name, final Connection connection);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy