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

NX: Sun Automated Testing of Data.java?

 
Javini Javono
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've seen some posts which suggest, though I don't think anyone knows
with certainty, that Sun might run a test program to exercise
Data.java which implements DBMain (for version 1.3.1 of the URLyBird
project).
I personally, though I am quite a novice on RMI and record locking
(since I've used servlets and JDBC databases in the past), think
that such a test is not possible.
As a simple for instance, I would suspect that my Data class would
need helper classes, and these may need to be instantiated in certain
ways that Sun's tester application (if it exists) would know nothing
about. Thus, Sun could not have in existence a tester application
that would know how to use my Data class.
However, it is quite possible that an automated tool might read the
Data.class file and the DBMain.class file to see that they are
identical to what Sun expects. But actually running my particular,
or anyone's particular Data class in isolation, I think is highly
unlikely.
Thanks,
Javini Javono
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agreed that Sun can't fully automate any test that requires an instance of your class. But they can easily test using reflection without creating an instance:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic