| Author |
Object Oriented Testing
|
michael delta
Ranch Hand
Joined: Aug 11, 2009
Posts: 33
|
|
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: 23645
|
|
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
|
 |
michael delta
Ranch Hand
Joined: Aug 11, 2009
Posts: 33
|
|
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: 23645
|
|
|
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: 33
|
|
|
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: 23645
|
|
|
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.
|
 |
 |
|
|
subject: Object Oriented Testing
|
|
|