• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Object Oriented Testing

 
Ranch Hand
Posts: 35
Mac OS X Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
author & internet detective
Posts: 42073
932
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 42073
932
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 42073
932
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic