Learning Apache Apex
by Ananth Gundabattula, Thomas Weise, Munagala V. Ramanath, David Yan, Kenneth Knowles
Application testing
In addition to the normal unit tests for individual functions or other small units of behavior, Apex simplifies the task of integration testing of the entire application directly on the command line of your development machine, or within your IDE without the need to set up an entire Hadoop cluster, which can be a tedious process. When developing Apex applications, it is very important to use this mechanism so that bugs can be discovered and corrected early in the development process.
As described in Chapter 2, Getting Started with Application Development, a single JUnit test is encapsulated in a method of the test class (SampleApplicationTest in this case), which is annotated with @Test. But there is a bit more to this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access