Where to use Assertion in Java Program

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Assertion in java is fairly underused feature but if used carefully can complement both Unit Testing and Exception handling. Since Assertion sits on c

Statistics

  • Total Hits - 26853

  • Total Votes - 115 votes

  • Vote Up - 57 votes

  • Vote Down - 58 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-01-23 08:38:40

Description

Quick tips on where to use Assertions in Java. Assertion in java is fairly underused feature but if used carefully can complement both Unit Testing and Exception handling. Since Assertion sits on code its gets more expose than unit testing and can test your function with more real data than one or two test data. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements