1 Reply Latest reply on Mar 16, 2007 7:56 PM by Udo Krass

    TestNG

    Udo Krass Newbie

      Hi,

      i wanna use TestNG to test my seam webapp.
      My classpath settings include my JAR, my EAR, the jndi-parameters and all jars i use in the project:

      <testng outputdir="test-output">
       <classpath path="${build}/${ant.project.name}.ear/${ant.project.name}.jar"/>
       <classpath path="${build}/${ant.project.name}.ear"/>
       <classpath path="${res}/microcontainer/conf"/>
       <classpath refid="classpath" />
       <xmlfileset dir="${basedir}" includes="testng.xml" />
       </testng>


      But when I invoke my test, i get following Exception:
      java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName:


      Which file is expected in the classpath?
      e.g. I tried to add components.xml seperately, but with no success.
      in this file i declare my jndiPattern:
       <core:init debug="true" jndi-pattern="MyProject/#{ejbName}/local"/>
      


      My Webapp in the JBoss-Container work pretty well.
      Any hints?

        • 1. Re: TestNG
          Udo Krass Newbie

          Got It:

          <testng outputdir="test-output">
           <classpath path="${build}/${ant.project.name}.ear/${ant.project.name}.jar"/>
           <classpath path="${build}/${ant.project.name}.ear/${ant.project.name}.war"/>
           <classpath path="${build}/${ant.project.name}.ear"/>
           <classpath path="${res}/microcontainer/conf"/>
           <classpath refid="classpath" />
           <xmlfileset dir="${basedir}" includes="testng.xml" />
           </testng>