org.arquillian.ape.nosql.redis.RedisPopulatorExtension Maven / Gradle / Ivy
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 extends Annotation> populatorAnnotation() {
return Redis.class;
}
@Override
public Class extends PopulatorService> populatotService() {
return RedisPopulatorService.class;
}
@Override
public Class extends Populator> populator() {
return NoSqlPopulator.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy