Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object Oriented Testing

 
michael delta
Ranch Hand
Posts: 35
Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
michael delta
Ranch Hand
Posts: 35
Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I have to make a comparison, so I have to use at least these two. Thank you for your help!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic