Hey all,
Let me give an example of how I'm using Cactus now.
Jboss 3.2.2, Xdoclet/Maven build environment, J2EE EJB2.0 CMP2.0 project.
EntityJar1
SessionJar1 depends on EntityJar1
SessionJar2 depends on EntityJar1
SessionJar3 depends on SessionJar1, SessionJar2
myEar1 (just puts them all together)

Example of how it is now:
====
Running Cactus Tests on EntityJar1:
No problems. Just make the test files in /src/test-cactus. Compile the normal Jar and 
copy the jar to Jboss, then run the 'maven cactus:test'.

Running Cactus Tests on SessionJar1, SessionJar2
This has not worked.  The only way I can get this to work is to JAR the EntityJar1 
with the SessionJar1/SessionJar2, which kinda defeats the whole point of breaking them 
up.  A combined Jar is then copied to Jboss and 'maven cactus:test' runs fine.  This 
sucks, but works.

Running Cactus Tests on SessionJar3:
Heck no - combining all those JAR's into one Jar instead of EAR? Lame.
====

Now, with the new 'maven cactus:test-ear' I thought this would be a perfect!  But, I 
don't seem to have a clue on how to setup my project to use this.
*Test EntityJar1 only
*Test SessionJar1 only (with an ear I presume to keep the EntityJar1 dependency ok)
*Test SessionJar2 only
*Test SessionJar3 only
*Test EntityJar1/SessionJar1
....you get the point.


I have individual /src/test-cactus for each individual JAR. There are no tests in 
myEar1. After all the work is made in writing the tests, how do you put them all 
together for efficient testing?
-D

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to