|
|
How Can I Test Java Classes?
Testing object-oriented software is more difficult than testing structural software.
The object oriented paradigm has some features, for example, the information hiding and the runtime binding,
which could cause some difficulties in the testing phase.
But after all how can we overcome these difficulties?
Test drivers
The most obvious approach is writing testing client that executes the public methods of
the classes under test.
Assertion
According to this approach the developer embeds assertions inside in the source code.
The assertion could be method pre- and post conditions.
Built-in test
In this case the developer adds additional functions to the classes for testing purposes.
During the testing process these testing functions will be invoked.
Using general test driver
In this case there is a general driver, which can exercise (public and private) methods of
the classes. The tester has only the task to provide data for test calling.
The GJTester provides the "general test driver" and "built-in test" approach.
You can process testing without programming effort by using the Test Editor Tool.
An other advantage is that the tool requires less training and less effort to work with.
With the GJTester you can reach&test the hidden and the published functions as well.
>>> Click here to learn more about GJTester .
|
|