Testing the Java Class using the Test class button

The method to test the code in a Java Class step is similar to the one that you saw in the JavaScript section:

  1. Click on the Test class button at the bottom of the window.
  2. A window appears to create a set of rows for the testing. Fill it in as shown in the screenshot:
Sample data
  1. Click on Preview and a window appears showing ten identical rows with the provided sample values.
  2. Click on OK in the preview window to test the code.
  1. A window appears with the result of having executed the code on the test data:
Previewing the result of a Java Class code

As you can see, after confirming the ...

Get Learning Pentaho Data Integration 8 CE - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.