Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does the automated testing work?

 
Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
My assignment is URLyBird. I am implementing the DBMain interface. How on earth does sun's automated testing tool instantiate the class which i write?
I can think of two ways:
1. The grader figuresout how to instantiate the class and writes code for it.
2. Sun uses reflection to automatically figureout which object implements the interface and tracks the class loading to find when the object is being instantiated and takes a runtime hook of it. (ha ha ha...)
Any clues?
Dushy
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure they need to instantiate your class at all. They may simply use methods of Class to check method names, return types, exceptions. If they do instantiate it, I'd imagine the tester writes custom code for that part, since my instructions didn't specify anything about the type of constructor(s) that we might provide.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic