• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How does the automated testing work?

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Everybody! Do the Funky Monkey! Like this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic