Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Particulars of building a Tester Class  RSS feed

 
Lisa Beglaw
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am building a tester class and I am not sure of the specifics on how to do this.

One of my methods is to add a new movie to my movieCollection class by selecting it off the object bench. How do I replicate that in a tester class? I am going on the assumption that when running a testerClass the tester should just run the test and everything happens for them.
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using JUnit?
 
Lisa Beglaw
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using BlueJ, but I think I have figured it out...Thanks.

edited out a code line I accidentally pasted.
[ August 10, 2005: Message edited by: Lisa Beglaw ]
 
Tony William
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just looked up in the net and see that the systematic testing tools in BlueJ are based on JUnit.

Details can be found here
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!