This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes Object Oriented Testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Object Oriented Testing" Watch "Object Oriented Testing" New topic
Author

Object Oriented Testing

michael delta
Ranch Hand

Joined: Aug 11, 2009
Posts: 35

Hello java ranchers

I have an assignment about OO Testing and I would love to know about the following:

I'm looking for OO testing tools, so far I have found JUnit, Mockito and TestNg. Are these tools right for what I'm looking for? I have to say again that I'm looking specifically for OO testing and not generic testing. Do you have any other suggestions for tools?

Also I would like some advices about the testing data, should I make the data or some book examples would be a better idea?

Any other suggestions would be more than helpful!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

What is OO testing? Is it just testing objects in Java or does it have some other meaning?

JUnit and TestNG are frameworks for unit testing. Mockito is a tool used with JUnit or TestNG to replace calls to other objects/resources.


[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
michael delta
Ranch Hand

Joined: Aug 11, 2009
Posts: 35

Well, as far as I know OO testing is nothing more than testing in OO environments. It's a way to make clear that the testing is not meant for a traditional procedural language.

So, yes as you said it's just testing objects in Java.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

Ok. Then the tools you mention are good. (pick one between JUnit and TestNG.) "Test Driven" and "JUnit in Action" are good books for getting started.
michael delta
Ranch Hand

Joined: Aug 11, 2009
Posts: 35

Actually I have to make a comparison, so I have to use at least these two. Thank you for your help!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

I missed the "assignment" part. You'd be comparing JUnit vs TestNG for a testing framework. And Mockito vs jMock vs easyMock for a mock objects framework.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Object Oriented Testing
 
Similar Threads
Testing and Test Tools Survey
Analyzing Java source code
Data modeling
please comment-OOP BAD
Best WebTest and Load tool