The Artima Developer Community
Sponsored Link

Java Buzz Forum
Cleaner JUnit tests with PMD

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Tom Copeland

Posts: 486
Nickname: tcopeland
Registered: Nov, 2004

Tom Copeland is a junior developer.
Cleaner JUnit tests with PMD Posted: Apr 14, 2006 6:45 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Tom Copeland.
Original Post: Cleaner JUnit tests with PMD
Feed Title: Junior developer: Java
Feed URL: http://tomcopeland.blogs.com/juniordeveloper/index-java.rdf
Feed Description: System.out.println("Hello world!");
Latest Java Buzz Posts
Latest Java Buzz Posts by Tom Copeland
Latest Posts From Junior developer: Java

Advertisement
Do you have any JUnit tests that have assertions like this? List list = getList();assertFalse(!list.isEmpty()); Whew, that's a nasty assertFalse. Let's see, List.isEmpty(), but the negation of that, and we don't want that negation to be true... yikes. Far better...

Read: Cleaner JUnit tests with PMD

Topic: [DrunkAndRetired.com Podcast] Episode 43 - Licensing, Eurovision and Service Oriented Architectures Previous Topic   Next Topic Topic: Reminder: London 2.0 RC 4 - Monday 3rd April

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use