File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes programmer, object tests Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "programmer, object tests" Watch "programmer, object tests" New topic
Author

programmer, object tests

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31079
    
163

In one of the sample chapters, JB explains his terminology of progammer and object tests. I assume that programmer tests include object tests and integration/functional tests written by the programmer.

Do you use any distinction between object tests that run as pure unit tests and those that require a database, server, etc?


[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
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Jeanne Boyarsky:
those that require a database, server, etc?
Isn't this by definition an functional/integration test?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31079
    
163

Lasse,
Yes, of course. I am trying to figure out if JB includes those as object tests in his terminology. Sometimes they test just one object (like a DAO.)
J. B. Rainsberger
author
Ranch Hand

Joined: Aug 05, 2004
Posts: 87
I use the term "isolated object test" to refer to a test that exercises a single object in isolation. That means that I simulate all other collaborators, be they databases, network resources, or other Java objects.

A "programmer test" is any test a programmer writes to increase her confidence that the code does what she thinks it does.


Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394230/ref=jranch-20" target="_blank" rel="nofollow">JUnit Recipes: Practical Methods for Programmer Testing</a>
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31079
    
163

J.B.,
That was the terminology I was looking for! What do you call the non-isolated object tests?
J. B. Rainsberger
author
Ranch Hand

Joined: Aug 05, 2004
Posts: 87
An object test that isn't isolated is, I suppose, an integration test; but for me, object tests should be isolated to the extent possible. I emphasize this point by throwing in the (redundant) word "isolated".
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31079
    
163

J. B.,
Ok. I understand the terminology now. Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: programmer, object tests