You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Frederick N. Brier" <fb...@multideck.com> on 2007/07/21 16:20:59 UTC
dependency scope - provided and test
I am developing a portlet and the container provides the portlet
implementation, so I used "provided" as the scope. Unfortunately, the
unit tests then generate NoClassDefFoundError(s). If I use "test", the
project does not build. So what <scope> do I use?
<dependency>
<groupId>portlet-api</groupId>
<artifactId>portlet-api</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
Also, if there are any examples out there for automated UI testing a
Portlet, please let me know. Thank you.
Fred
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency scope - provided and test
Posted by Maria Odea Ching <oc...@exist.com>.
Hi Frederick,
Try looking at Selenium, maybe you could use it for UI testing a
portlet. Also, there is also a maven plugin available for it.
For examples on how to use it, see Continuum's continuum-webapp-test
module which you could checkout here:
https://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-webapp-test
HTH,
Deng
Frederick N. Brier wrote:
> I am developing a portlet and the container provides the portlet
> implementation, so I used "provided" as the scope. Unfortunately, the
> unit tests then generate NoClassDefFoundError(s). If I use "test",
> the project does not build. So what <scope> do I use?
>
> <dependency>
> <groupId>portlet-api</groupId>
> <artifactId>portlet-api</artifactId>
> <version>1.0</version>
> <scope>provided</scope>
> </dependency>
>
> Also, if there are any examples out there for automated UI testing a
> Portlet, please let me know. Thank you.
>
> Fred
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org