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

org.arquillian.ape.nosql.redis.RedisPopulatorExtension Maven / Gradle / Ivy

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

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 RedisPopulatorExtension implements LoadableExtension, JUnitRuleSupport {

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy