How is white box testing done on java applications? Does it mean that I have to test class by class?
From my research I know that:
White Box Testing is a software testing method in which the internal structure/design/implementation of the item being tested is known to the tester. The tester chooses inputs to exercise paths through the code and determines the appropriate outputs. Programming know-how and the implementation knowledge is essential. White box testing is testing beyond the user interface and into the nitty-gritty of a system.
What should the white box testing look like?
Class-by-class testing is usually called unit-testing. There are several popular tools that can help you. Start from JUnit or TestNG. Implement tests for each class or group of classes (modules) that provide some functionality.
Then you can go up, i.e. write tests for bigger modules and for whole application. Such tests are typically called integration tests.