Re: what is assertion in java?



well the drawback of this is having your code cluttered with asserts all
over the place. it is possibly better to have a testing framework (like
junit) in place.

best regards,
jan

Hal Rosser wrote:

>
> "SOAP" <s@xxxxxxxx> wrote in message news:426d538e$1@xxxxxxxxxxxx
>> what is assertion in java?
>> thank you
>>
> verifying correct preconditions and post conditions for your methods so
> testing your software will go more smoothly

--
______________________________________
insOMnia - We never sleep....
http://www.insomnia-hq.de
.



Relevant Pages

  • Re: what is assertion in java?
    ... it is possibly better to have a testing framework in place. ... write a JUnit test that ensures that a particular method is never called with a null value? ... Having code with asserts can be very helpful, ...
    (comp.lang.java)
  • Re: Advice on how to remove dependency to framework
    ... JUnit is a testing framework. ... How on earth would anyone depend an ... earth would a programmer worth two cent not know what is wrong with ...
    (comp.lang.java.help)
  • Looking for a web testing framework
    ... Just as I use JUnit for server side unit testing (EJBs), ... I've searched for other web application testing framework and came up ... with JWebUnit which is JUnit built above HttpUnit. ...
    (comp.lang.java.softwaretools)
  • Re: Unit testing frameworks
    ... I'm work on a testing framework for Python. ... implemented the main features of PyUnit and JUnit 4.x. ... I plan a lot of additionally features which are neither part of Junit ...
    (comp.lang.python)