Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Intermediate
Feb 15, 2005

Ensure That You've Implemented All Your Tests

Eve been writing unit tests, and while you're coding one test, you have ideas for another test? In order not to break your train of thought, leave a bookmark in your test, to make sure to come back and fix it. It will look like this:

public void testUseGoodTestNameHere() {
    fail("Not implemented yet.");
}
Leave the failure until you've implemented the test completely.

Laurent Duperval
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap