ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aloizio Pereira da Silva <aloi...@dcc.ufmg.br>
Subject JUnit + Problem
Date Fri, 18 Jul 2003 18:40:03 GMT
I am having a problem with the following task:

  <target name="executarTestes"  description="executa testes de unidade
para um projeto especifico">
     <echo>executando teste de unidade</echo>
    <junit  fork="yes" printsummary="true"  haltonfailure="false">
      <classpath refid="test.classpath" />
      <classpath location="C:/Local/JBuilder4/lib/Synergia/JUnit.jar" />  
      <classpath location="${build}/lib/siace.jar" />  
      <classpath location="${ant15.dir}/lib" /> 
      <classpath location="${build}/testcases/teste" /> 
      <classpath location="${build}/classes" />
      <classpath location="${checkstyle.dir}/jakarta-regexp.jar"/>
      <!-- <formatter type="brief" usefile="false" />  -->

      <formatter type="xml" /> 
       <!-- <test name="siace.remessaanual.Testador"/> -->
       <batchtest>
            <fileset
dir="${build}/testcases/teste" includes="**/Teste*.class" />
      </batchtest>
    </junit>

    <junitreport>
      <fileset dir="${build}/classes">
        <include name="TEST-*.xml"/>
      </fileset>
      <report format="noframes" styledir="${ant15.dir}/etc"/>
    </junitreport>

   </target>

The followin message is showed:

Buildfile: build.xml

executarTestes:
     [echo] executando teste de unidade
    [junit] Running
siace.remessaanual.administracao.controle.TesteControleRelac
aoEntidadesAIM
    [junit]
java.lang.NoClassDefFoundError: siace/remessaanual/administracao/con
trole/TesteControleRelacaoEntidadesAIM (wrong
name: teste/siace/remessaanual/adm
inistracao/controle/TesteControleRelacaoEntidadesAIM)
    [junit]     at java.lang.ClassLoader.defineClass0(Native Method)
    [junit]     at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    [junit]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader

Someone can help me?




            *****************************************************
            *         Federal University of Minas Gerais        *
            *          Department of Computer Science          *
            *         Master Degree in Computer Science         *
            *                                                   *
            *                 Aloizio Silva                     *
            *         http://www.dcc.ufmg.br/~aloizio          *
            *                                                   *
            *      Mobile Computer and Network Optimization     *
            *****************************************************                        
 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message