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

org.arquillian.ape.nosql.couchbase.CouchbasePopulatorExtension Maven / Gradle / Ivy

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

import java.lang.annotation.Annotation;
import org.arquillian.ape.spi.Populator;
import org.arquillian.ape.spi.junit.rule.JUnitRuleSupport;
import org.arquillian.ape.nosql.NoSqlPopulator;
import org.arquillian.ape.nosql.NoSqlPopulatorEnricher;
import org.arquillian.ape.spi.PopulatorService;
import org.jboss.arquillian.core.spi.LoadableExtension;
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider;

class CouchbasePopulatorExtension implements LoadableExtension, JUnitRuleSupport {

    @Override
    public void register(ExtensionBuilder extensionBuilder) {
        extensionBuilder.service(PopulatorService.class, CouchbasePopulatorService.class)
            .service(ResourceProvider.class, NoSqlPopulatorEnricher.class);
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy