Book Image

Arquillian Testing Guide

By : John D. Ament
Book Image

Arquillian Testing Guide

By: John D. Ament

Overview of this book

<p>Integration testing sometimes involves writing complex codes. This book introduces you to the capabilities of Arquillian to enable you to write simple code with a broad range of integration tests for java applications. <br /><br />Arquillian Testing Guide serves as an introductory book to writing simple codes for testing java applications. This book will help you to develop richer test cases which can be run automatically while performing rigorous testing of the software. <br /><br />Arquillian Testing Guide introduces you to Arquillians features and capabilities. This book will help you understand the mechanism of creating deployments and test against those deployments. The book begins with basic JUnit test cases beginning with an enterprise test case, which then go on to discuss remote testing. During the course of the book, you will also learn how to mix container and non-container tests into a single test case. By the end of the book, you will have learned how to extend JUnit tests to work with Arquillian and deploy them to a container automatically.</p>
Table of Contents (17 chapters)

Summary


Arquillian support for OSGi is still in its infant stages. As support for the standard grows within JBoss, I believe its usage will become more stable and more robust. We can go ahead and develop and deploy usable OSGi bundles, but until there is strong integration to the Java EE platform it may not be an overly useful tool for your arsenal.

When it comes to most other application servers, we can actually use their default container adapters to do work. This logically makes more sense; however, we lose some features such as bundle or bundle-context injection. We could manually lookup the service if we had access to a managed object to provide the bundle or bundle context.

One of the benefits of using GlassFish for your OSGi runtime in your application server is that your application likely has little to change to work with it. Obviously, you lose some injection capabilities for bundle resources, but that may not be a needed capability for your testing. The main use case right now for...