Use the Leopard2E plug-in to assist in writing test code.
Use the Leopard2E plug-in to help write test code and learn how to install and use the Leopard2E plug-in.
This guide guides you through the installation and use of the Leopard2E plug-in.
How to complete this guide
You can start from scratch and complete each step, or you can bypass the basic setup steps you are already familiar. Either way, you can finally get the code that can work.
Install Leopard2E plug-in
1. Eclipse-> Help menu-> Install New Software ..., Open the Install Window
2. Click the Add button to open the Add Repository window and enter the http://leopard2e.leopard.io/update/ in Location
3. Return to the Install window and select the added URL in Work.
4. Select "Leopard2E" and click "Next.
Use Leopard2E to write test code
1. Open any Java File
2. Right-click any method and choose Leopard2E-> Junit Test from the shortcut menu. Leopard2E automatically creates the corresponding Test code for you and jumps to the corresponding Test method.
Leopard2E automatically generates some basic test code, such as Bean variable definition of the main code and inheriting the test base class.
Summary
Congratulations! You have learned how to install and use the Lepard2E plug-in. Good luck.