Right darren,
 i m afraid i forgot to send you yesterday latest code i have (works with
rc9 too) because
after struggling i found out that there were problems with testng version
and surefire version..
try to google testng and surefire, if i remember correctly i took out the
version from surefire, but i have upgraded testng to be 5. something..
==wait a sec i found mail that was sent to me when i was enquiring about
same problem
this was dependencies i got..

<dependencies>
   <dependency>
     <groupId>org.testng</groupId>
     <artifactId>testng</artifactId>
     <version>5.1</version>
     <scope>test</scope>
     <classifier>jdk15</classifier>
   </dependency>
 </dependencies>

 <build>
   <plugins>
     <plugin>
       <artifactId>maven-surefire-plugin</artifactId>
       <configuration>
         <suiteXmlFiles>
           <suiteXmlFile>src/test/resources/testing.xml</suiteXmlFile>
         </suiteXmlFiles>
       </configuration>
     </plugin>
   </plugins>
 </build>


this works for me @ home, i'll give you confrim by private email this eve
when i get home


hth
marco






pls google testng and surefire, as well as check archive of testng and
maven2 because

On 11/3/06, Darren Hartford < [EMAIL PROTECTED]> wrote:

Hi Marco,
Actually, I am using your examples and helped to test that solution with
embed-ejb3-RC8 on the SUREFIRE-2.2-SNAPSHOT plugin, which worked fine.

Unfortunately, Surefire 2.2 official and 2.3-snapshot are having issues
with javax.management packages and the JBossMXServerConfig
classnotfoundexceptions (regardless of the childDelegation flag) and I'm
getting NO responses from Embed EJB3 or Surefire developers to help
resolve the issue.


> References
> ===============
>
http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loa
ding.html
> childDelegation property to true:
> Classes in the java.* and javax.* packages can never be overridden.
>
> http://jira.jboss.com/jira/browse/EJBTHREE-534
> JBossMXServerConfig issue
>
>
http://mail-archives.apache.org/mod_mbox/maven-users/200606.mbox/%3CPine
[EMAIL PROTECTED]
> similar problems
>
> http://jira.codehaus.org/browse/SUREFIRE-38
> Alpha-6, configuring surefire with
> <forkMode>pertest</forkMode><childDelegation>false</childDelegation>
>
>
http://docs.codehaus.org/display/MAVENUSER/How+to+use+the+JBoss+Embedded
+EJB3+Container+for+Unit+testing
> Sample setup (older surefire that maybe didn't mind overriding javax.*

> packages) Personally tested on RC8 and Surefire 2.2-SNAPSHOT with
> success.


My tests are dead in the water - which is why I'm back to looking at
alternatives.  I've done the Cargo route in the past, but would really
prefer using the embed EJB3 route to avoid container-started
port-conflicts on a continuous integration build machine.

--
Darren Hartford
Senior Software Engineer, CDIA+
GHS Data Management (formerly Goold Health Systems)
ph: (207) 622-7153 x1150

-----------
Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) or their authorized
representatives only, and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original message.
-----------



> -----Original Message-----
> From: Marco Mistroni [mailto: [EMAIL PROTECTED]
> Sent: Thursday, November 02, 2006 9:01 AM
> To: Maven Users List
> Subject: Re: Testing EJB3
>
> Hello,
>   i use jbossmicrocontainer and testNG (testNG purely because
> i got it from some other examples.... you can as well start
> your ejb container with a base junit test)..
> i had problems with version of surefire plugin.... i can send
> you my pom.xmlthis eve (i have it @home) if you need it...
>
> hth
>  marco
>
> On 11/2/06, Darren Hartford <[EMAIL PROTECTED]> wrote:
> >
> > I've asked through a couple of requests about embedded-EJB3 and
> > surefire testing, but haven't received any feedback at all
> on some of
> > the issues I keep running into.
> >
> > So...how do most of you test your EJB3's?
> >
> > Thanks,
> > -D
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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


Reply via email to