Skip to content

Basic Arquillian example using managed and remote WildFly application server.

License

Notifications You must be signed in to change notification settings

tolis-e/arquillian-wildfly-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arquillian WildFly Example Build Status

This project contains an Arquillian test example which is executed against WildFly application server.

The Arquillian testing platform is used to enable the testing automation. Arquillian integrates transparently with the testing framework which is JUnit in this case.

Test Content

The Test defines the three core aspects needed for the execution of an Arquillian test case:

  • container — the runtime environment
  • deployment — the process of dispatching an artifact to a container
  • archive — a packaged assembly of code, configuration and resources

The container's configuration resides in the Arquillian XML configuration file.

The test case is dispatched to the container's environment through coordination with ShrinkWrap, which is used to declaratively define a custom Java EE archive that encapsulates the test class and its dependent resources. Arquillian packages the ShrinkWrap defined archive at runtime and deploys it to the target container. It then negotiates the execution of the test methods and captures the test results using remote communication with the server. Finally, Arquillian undeploys the test archive.

The POM file contains two profiles:

  • arq-wildlfy-managed — managed container
  • arq-wildfly-remote — remote container

By default the arq-wildfly-managed (managed container) profile is active. An Arquillian managed container is a remote container whose lifecycle is managed by Arquillian. The specific profile is also configured to download and unpack the WidlFly 8.1.0.Final distribution zip from the Maven Central repository.

Test Execution

The execution of the functional test is done through maven:

mvn test

Documentation

About

Basic Arquillian example using managed and remote WildFly application server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages