O'Reilly logo

Arquillian Testing Guide by John D. Ament

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. ShrinkWrap in Action

ShrinkWrap is a powerful tool for building and manipulating Java archives. In fact, it is used internally to JBoss AS 7 to read archives. The goal of ShrinkWrap is to be able to create archives on the fly based on class and file structure. If you're familiar with ant and how it creates archives, ShrinkWrap is very similar except that it works based on classes declared in the JVM. This sets it apart greatly from other tools.

What is ShrinkWrap?

ShrinkWrap is a domain specific language (DSL) for accessing, creating, and manipulating archives. It is instantiated using a static call to the ShrinkWrap class, and takes a class as an argument to know what kind of archive we're working with. It can start as simple as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required