JVerify is a Java
tool that supports a unique invasive testing model. The invasive model
allows access to the internals (private elements)
of any Java object from within a test script. The ability to invade class
internals facilitates more effective testing at class level, since
controllability and observability are enhanced. This can be
very valuable when a class has not been designed for testability.
scripting language called JMScriptTM built on
top of Java has been designed to
support class invasion. This language allows the tester
to write a script that instantiates Java objects and sends messages to
them in a manner very similar to what happens in
a Java program.
paper (PDF file) that describes the invasive testing model is available
also: How Can I Test Java Classes?,
Dr.Dobb's Journal, July 1999, pp. 107-110.
is available for a no-obligation evaluation for 15 days.