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

org.wildfly.arquillian.junit.enricher.ExtensionAuxiliaryArchiveAppender Maven / Gradle / Ivy

There is a newer version: 5.1.0.Beta5
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.arquillian.junit.enricher;

import org.jboss.arquillian.container.test.spi.client.deployment.AuxiliaryArchiveAppender;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.wildfly.arquillian.junit.annotations.JBossHome;
import org.wildfly.arquillian.junit.condition.JBossHomeParameterResolver;
import org.wildfly.plugin.tools.VersionComparator;

/**
 * @author James R. Perkins
 */
public class ExtensionAuxiliaryArchiveAppender implements AuxiliaryArchiveAppender {
    @Override
    public Archive createAuxiliaryArchive() {
        return ShrinkWrap.create(JavaArchive.class, "wildfly-junit-utils.jar")
                .addPackage(JBossHome.class.getPackage())
                .addPackage(JBossHomeParameterResolver.class.getPackage())
                .addClass(VersionComparator.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy