Eclipse
From Documentation
Checkout Source Code
Please refer to How to Run the ZTL Test Cases
Import an Existing Projects into Workspace
- In your eclipse IDE, click File>Import...>Existing Projects into Workspace
- Set the root directory to the directory named ztl where you checked out the code
- Open src/org/zkoss/ztl/util/ZtlGenerator.java, and click Run.
- Right-click on src/org/zkoss/ztl/util/ZtlGenerator.java, and click Run As>Run Configurations...
- On the right hand side panel of the dialog, click the tab Arguments and put the following arguments inside.
- -src test -dist codegen
- Click Apply and Run
- You can find all of the JUnit test cases are created under the codegen directory.
- Right-click upon the JUnit test case you want and then click run as JUnit Test