GeeCON Prague 2014*
The moose likes Testing and the fly likes Should unit testing be given up? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Testing
Bookmark "Should unit testing be given up?" Watch "Should unit testing be given up?" New topic
Author

Should unit testing be given up?

zhengzwang
Greenhorn

Joined: Jan 13, 2007
Posts: 1
Unit test is good in many aspects. But do you think it much expensive to write full set of unit tests for our business methods, especially enterprise application business methods?
The full set of unit tests include one or more ok test (a mediation business method require multiple ok unit tests), multiple data validation tests, multiple exception tests. Further, when you write in-container unit test, which is the most often seen condition for j2ee application development, you may experience pain on DbUnit, ServletTestCase or StrutsTestCase framework usage.
After nearly half a year practicing on unit test and test-driven development, I am frustrated very much, because I spent much more time on writing unit test code than on writing the business method implementation.
Can anyone tell me whether I should give up the unit testing?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
Hello "zzz www "-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

Enjoy your time here.


Ping & DNS - my free Android networking tools app
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Your screen name still doesn't follow the policy; we need a first name, a space, and a last name.

Also, this isn't a question about the Java language, so it doesn't belong in our "Advanced Java" forum; I'm going to move it to our "Testing" forum for continued discussion.


[Jess in Action][AskingGoodQuestions]
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Well, does your code have to actually work?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
GeeCON Prague 2014
 
subject: Should unit testing be given up?