File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes in testNG we test errors or exceptions? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "in testNG we test errors or exceptions?" Watch "in testNG we test errors or exceptions?" New topic
Author

in testNG we test errors or exceptions?

kenji kunoichi
Ranch Hand

Joined: Jun 02, 2007
Posts: 44
in program testing (whiteBox) we test the errors or exceptions?
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 761
    
    9
Yes, especially in white box testing. white box testing usually must result in 100% coverage which means testing all branches including catch blocks.
 
Consider Paul's rocket mass heater.
 
subject: in testNG we test errors or exceptions?
 
Similar Threads
Exceptions Doubt
Exception
EL Relational Operators
Q on Exception Handling
Can AssertionError can be caught and handled?