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

org.arquillian.ape.rdbms.flyway.FlywayPopulatorExtension Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha.7
Show newest version
package org.arquillian.ape.rdbms.flyway;

import java.lang.annotation.Annotation;
import org.arquillian.ape.spi.Populator;
import org.arquillian.ape.spi.junit.rule.JUnitRuleSupport;
import org.arquillian.ape.rdbms.core.RdbmsPopulator;
import org.arquillian.ape.rdbms.core.RdbmsPopulatorEnricher;
import org.arquillian.ape.spi.PopulatorService;
import org.jboss.arquillian.core.spi.LoadableExtension;
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider;

public class FlywayPopulatorExtension implements LoadableExtension, JUnitRuleSupport {
    @Override
    public void register(ExtensionBuilder extensionBuilder) {
        extensionBuilder.service(PopulatorService.class, FlywayPopulatorService.class)
            .service(ResourceProvider.class, RdbmsPopulatorEnricher.class);
    }

    @Override
    public Class populatorAnnotation() {
        return Flyway.class;
    }

    @Override
    public Class populatotService() {
        return FlywayPopulatorService.class;
    }

    @Override
    public Class populator() {
        return RdbmsPopulator.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy