users@glassfish.java.net

Re: How to get javaee.jar (the implementation of GlassFish, not the pure API jar) with maven?

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Wed, 25 Jul 2012 10:08:48 +0200

Hi Markus

On 25 July 2012 09:57, Markus Karg <karg_at_quipsy.de> wrote:

> I want to run unit tests with maven, so as a runtime replacement for the
> pure-API „javaee-api” JAR (Maven coordinates = javax:javae-api:6) I need to
> add a dependency on a “real” implementation of javaee.jar (which includes
> the real classes for e. g. javax.ejb.EJBException and so on).What are the
> coordinates to get this?
>

This is not really answering your question. So forgive me.

If you want to write unit tests for Glassfish, why not try Arquillian ?
http://www.jboss.org/arquillian.html (it works for Glassfish as well)
http://nosoftskills.com/2011/01/unit-testing-services-arquillian/



regards
Richard.