users@glassfish.java.net

Re: Unit testing with Maven and javaee-api dependency

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Mon, 13 Sep 2010 23:57:40 +0200

I'm collecting dependencies like this... a few of them I already have
http://dominikdorn.com/2010/05/maven-junit-classformaterror-absent-code-attribute/

maybe that helps.

kind regards,
dominik

On Mon, Sep 13, 2010 at 8:54 PM, <glassfish_at_javadesktop.org> wrote:
> Hi,
>
> While migrating to GlassFish V3 I had to change my Maven pom.xml to use the javaee-api dependency (scope = provided) so that my code would compile.
>
> I now have hundreds of unit tests that fail because the javaee-api does not provide implementation classes for JSF things such as FacesContext, ValidatorException, ExternalContext, etc.
>
>> Absent Code attribute in method that is not native or abstract in class file javax/faces/validator/ValidatorException
>
> I've tried adding the Mojarra implementation as a dependency but that didn't help.
>
> Any ideas?
>
>
> Thanks,
> Ryan
> [Message sent by forum member 'rdelaplante']
>
> http://forums.java.net/jive/thread.jspa?messageID=482552
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>



-- 
Dominik Dorn
http://dominikdorn.com
http://twitter.com/domdorn
Tausche Deine Lernunterlagen auf http://www.studyguru.eu !