dmatej / arquillian-container-glassfish

Arquillian GlassFish Containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arquillian Connectors Suite

Set of tools that provide a GlassFish Server container adapter for Arquillian.

Originally forked from:

Then forked from:

Quick example usage for the managed connector:

Declare dependency to connector (container adapter):

 <dependency>
    <groupId>org.omnifaces.arquillian</groupId>
    <artifactId>arquillian-glassfish-server-managed</artifactId>
    <version>1.1</version>
 </dependency>

Configure surefire or failsafe. Some examples given below. Only glassfish.home is required.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>${surefire.version}</version>
    <configuration>        
        <systemPropertyVariables>
            <glassfish.home>${glassfish.root}/glassfish7</glassfish.home>
            <glassfish.enableDerby>true</glassfish.enableDerby>
            <glassfish.maxHeapSize>2048m</glassfish.maxHeapSize>
            <glassfish.enableAssertions>:org.jboss.cdi.tck...</glassfish.enableAssertions>
            
            <glassfish.postBootCommands>
                create-jms-resource --restype jakarta.jms.Queue --property Name=queue_test queue_test
                create-jms-resource --restype jakarta.jms.Topic --property Name=topic_test topic_test
                set configs.config.server-config.cdi-service.enable-implicit-cdi=true
                create-file-user --groups student --passwordfile ${project.build.directory}/test-classes/password.txt student
                create-file-user --groups printer --passwordfile ${project.build.directory}/test-classes/password.txt printer
                create-file-user --groups student:alarm --passwordfile ${project.build.directory}/test-classes/password.txt alarm
            </glassfish.postBootCommands>
        </systemPropertyVariables>
    </configuration>
</plugin>

About

Arquillian GlassFish Containers


Languages

Language:Java 100.0%