You should enable assert keyword in java compiler as well as in JRE.
  Java Compiler: In window->preference->Java->Compiler->Compliance and
Classfiles, set all levels to 1.4
  JRE: Just as Benedict Heal said"window/preferences/java/installed
JREs, edit the JRE, and set the vmargs to -ea"

  Also, if you only want to enable assert keyword in several projects,
you can set the project's preference and "Run..." preference.
  Java Compiler: In Project->Preference->Java->Compiler->Compliance
and Classfiles.
  JRE: Run->Run..., select your junit case and then in Arguments->VM
Arguments add -ea.



On Mon, 08 Nov 2004 16:42:13 +0100, Filip S. Adamsen
<[EMAIL PROTECTED]> wrote:
>
> Shouldn't you be using one of the assert* methods instead of the Java
> keyword, or do you have a reason not to?
>
> -Filip
>
>
>
> albamatiit wrote:
> >
> >
> > I use JUnit in Eclipse 3.0. When an assert (java keyword) fail, the
> > test  go on instead of terminate with an error. How can I detect an
> > assert failure in tests?
> > Bye
> > Alberto
> >
> >
> >
> >
> >
> >
> >
> > *Yahoo! Groups Sponsor*
> > ADVERTISEMENT
> > click here
> >
> <http://us.ard.yahoo.com/SIG=12959np5d/M=298184.5285298.6392945.3001176/D=groups/S=1705006905:HM/EXP=1100014669/A=2319498/R=0/SIG=11thfntfp/*http://www.netflix.com/Default?mqso=60185352&partid=5285298>
> >
> >
> > ------------------------------------------------------------------------
> > *Yahoo! Groups Links*
> >
> >     * To visit your group on the web, go to:
> >       http://groups.yahoo.com/group/junit/
> >       
> >     * To unsubscribe from this group, send an email to:
> >       [EMAIL PROTECTED]
> >       <mailto:[EMAIL PROTECTED]>
> >       
> >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
>
>
> Yahoo! Groups Sponsor

>
> Get unlimited calls to
>
> U.S./Canada
>
> ________________________________
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/junit/
>  
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>  
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=374302090


Yahoo! Groups Links

Reply via email to