Use the Leopard2E plug-in to assist in writing test code.

Source: Internet
Author: User
Tags install window

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.