quality@glassfish.java.net

Re: Unit testing EJB modules with GlassFish Embeddable

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Wed, 6 Jan 2010 08:17:27 +0200

Hi Ludo

2010/1/5 Ludo <Ludovic.Champenois_at_sun.com>

> Richard Kolb wrote:
>
>> thanks, here you go.
>>
>> I can get GlassFish to start with a mvn install - the plugin is also in
>> the pom
>>
>> But I am trying to get a basic unit test working as per the Ant sample.
>>
>>
>>
>> fomr the pom and the stack trace, it seems that the test execution is
> using the jar from
>
> <dependency>
> <groupId>javax</groupId>
> <artifactId>javaee-api</artifactId>
> <version>6.0</version>
> <scope>provided</scope>
>
> which is only an API stripped jar containing no method byte code...This dep
> is for compiling only, not running anything, including embedded mode.
>

Ok, that makes sense, but this lib is provided and therefore it should use
the glassfish-embeded-static-shell jar on test execution.

regards
Richard