You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Darren Hartford <dh...@ghsinc.com> on 2004/04/02 23:18:31 UTC

[maven] cactus:test o.k., but cactus:test-ear does no tests?

Hey all,
I have some cactus-tests that I wrote back in January or so, now back into the project and now running Maven 1.0rc2 and a CVS-Head of cactus-maven-plugin (1.6dev).

Has anyone ran into cactus:test-ear not running any tests?  It cactifies the EAR fine, everything looks good, fires up the app server (jboss), closes the appserver but no tests are run and no errors.  With the exact same setup, running cactus:test does run the tests (but does not solve problem).  Is there some small configuration somewhere for EAR testing that I'm missing?

build.proprties
===
cactus.home.jboss3x = c:/jboss/jboss-3.2.3
cactus.src.mergewebxml = ${basedir}/src/conf/cactus-web.xml
===

project.properties
===
cactus.ear=${basedir}/target/${pom.artifactId}-cactus.ear
cactus.war.dir=${basedir}/target
cactus.war.name=${pom.artifactId}-cactus.war
===

The EAR application.xml from cactus:
===snip===
<display-name>Project Session Module for Cactus</display-name>
  <module>
    <web>
      <web-uri>PROJECT_SESSION-cactus.war</web-uri>
      <context-root>PROJECT_SESSION</context-root>
    </web>
  </module>
  <module>
    <ejb>PROJECT_SESSION-2.0-dev.jar</ejb>
  </module>
  <module>
    <ejb>PROJECT_ENTITY-2.0-dev.jar</ejb>
  </module>
</application>
===snip===

The PROJECT_SESSION-cactus.war contains the test class which looks like this (plus some other test methods):
===snip===
/*
 * @web:filter name="TestDataView"
 * @web:filter-mapping url-pattern="/*" servlet-name="TestDataView"
 */
public class TestDataView extends ServletTestCase {
    
    public void setUp(){
    }
    public void tearDown(){
    }    
    public void testAAA_INITIALIZE(){
        assertTrue(true);
    }
}
===snip===

TIA for any assistance, kinda bummed that suddenly I don't know how to test my EJB's when I used to only a couple of months ago ;-)

-D

RE: [maven] cactus:test o.k., but cactus:test-ear does no tests?

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Darren,

I don't know what's wrong. It's working fine for me. Could you please
run:

maven cactus:test-ear -X

and send us the output?

Thanks
-Vincent
 
> -----Original Message-----
> From: Darren Hartford [mailto:dhartford@ghsinc.com]
> Sent: 02 April 2004 23:19
> To: cactus-user@jakarta.apache.org
> Subject: [maven] cactus:test o.k., but cactus:test-ear does no tests?
> 
> Hey all,
> I have some cactus-tests that I wrote back in January or so, now back
into
> the project and now running Maven 1.0rc2 and a CVS-Head of
cactus-maven-
> plugin (1.6dev).
> 
> Has anyone ran into cactus:test-ear not running any tests?  It
cactifies
> the EAR fine, everything looks good, fires up the app server (jboss),
> closes the appserver but no tests are run and no errors.  With the
exact
> same setup, running cactus:test does run the tests (but does not solve
> problem).  Is there some small configuration somewhere for EAR testing
> that I'm missing?
> 
> build.proprties
> ===
> cactus.home.jboss3x = c:/jboss/jboss-3.2.3
> cactus.src.mergewebxml = ${basedir}/src/conf/cactus-web.xml
> ===
> 
> project.properties
> ===
> cactus.ear=${basedir}/target/${pom.artifactId}-cactus.ear
> cactus.war.dir=${basedir}/target
> cactus.war.name=${pom.artifactId}-cactus.war
> ===
> 
> The EAR application.xml from cactus:
> ===snip===
> <display-name>Project Session Module for Cactus</display-name>
>   <module>
>     <web>
>       <web-uri>PROJECT_SESSION-cactus.war</web-uri>
>       <context-root>PROJECT_SESSION</context-root>
>     </web>
>   </module>
>   <module>
>     <ejb>PROJECT_SESSION-2.0-dev.jar</ejb>
>   </module>
>   <module>
>     <ejb>PROJECT_ENTITY-2.0-dev.jar</ejb>
>   </module>
> </application>
> ===snip===
> 
> The PROJECT_SESSION-cactus.war contains the test class which looks
like
> this (plus some other test methods):
> ===snip===
> /*
>  * @web:filter name="TestDataView"
>  * @web:filter-mapping url-pattern="/*" servlet-name="TestDataView"
>  */
> public class TestDataView extends ServletTestCase {
> 
>     public void setUp(){
>     }
>     public void tearDown(){
>     }
>     public void testAAA_INITIALIZE(){
>         assertTrue(true);
>     }
> }
> ===snip===
> 
> TIA for any assistance, kinda bummed that suddenly I don't know how to
> test my EJB's when I used to only a couple of months ago ;-)
> 
> -D
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org