This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Testing and the fly likes Appropriate level of testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » Testing
Bookmark "Appropriate level of testing" Watch "Appropriate level of testing" New topic

Appropriate level of testing

Rob Dennett
Ranch Hand

Joined: Dec 07, 2010
Posts: 81
I was doing some TDD for a new version of an app we are creating and I wanted to test this

I wound up writing this (and I realize the test for the Controller annotation on the class is inappropriate, but I will fix that)

Is this overkill?

Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
What does TDD mean?
Rob Dennett
Ranch Hand

Joined: Dec 07, 2010
Posts: 81
Jimmy Clark wrote:What does TDD mean?

Test-Driven Development.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 30595

I think it is overkill. I would just test the return value in a unit test and test the annotation path when I do web testing.

The getting the correct annotation isn't testing something with meaning per se. It's testing you have the annotation you typed.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
GeeCON Prague 2014
subject: Appropriate level of testing