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 Re: JUnit + Problem
Date Fri, 18 Jul 2003 21:13:13 GMT
Hi Antoine,

Now the following errors is displayed:

Buildfile: build.xml

all:
     [echo] executando teste de unidade
    [junit] Running
teste.siace.remessaanual.administracao.controle.TesteControl
eRelacaoEntidadesAIM
    [junit] Tests run: 5, Failures: 5, Errors: 0, Time elapsed: 0,546 sec
    [junit] TEST
teste.siace.remessaanual.administracao.controle.TesteControleRe
lacaoEntidadesAIM FAILED
    [junit] Running
teste.siace.remessaanual.administracao.controle.TesteControl
eRelacaoEntidadesAIM2000E2001
    [junit] Tests run: 5, Failures: 5, Errors: 0, Time elapsed: 0,531 sec
    [junit] TEST
teste.siace.remessaanual.administracao.controle.TesteControleRe
lacaoEntidadesAIM2000E2001 FAILED
    [junit] Running
teste.siace.remessaanual.administracao.controle.TesteControl
eRelacaoEntidadesAIM2002
    [junit] Tests run: 5, Failures: 5, Errors: 0, Time elapsed: 0,531 sec
    [junit] TEST
teste.siace.remessaanual.administracao.controle.TesteControleRe
lacaoEntidadesAIM2002 FAILED
    [junit] Running
teste.siace.remessaanual.administracao.entidade.TesteMunicip
io
    [junit]
java.lang.NoClassDefFoundError: siace/teste/junit/framework/TestCase



            *****************************************************
            *         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     *
            *****************************************************                        
 

On Fri, 18 Jul 2003, [iso-8859-1] Antoine LÚvy-Lambert wrote:

> Hi Aloizio,
>    [junit] Running
> siace.remessaanual.administracao.controle.TesteControleRelacaoEntidadesAIM
>     [junit]
> java.lang.NoClassDefFoundError:
> siace/remessaanual/administracao/controle/TesteControleRelacaoEntidadesAIM
> (wrong name:
> teste/siace/remessaanual/administracao/controle/TesteControleRelacaoEntidade
> sAIM)
> 
> I wonder whether you do not have a problem of package names not matching the
> paths of the classes
> 
> change this line in your build.xml :
> 
>  <classpath location="${build}/testcases/teste" />
> to
>  <classpath location="${build}/testcases" />
> 
> because the error message implies that the package names of your test
> classes begins with teste.siace ...
> 
> Come back to us if this does not work.
> 
> Cheers,
> 
> Antoine
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


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


Mime
View raw message