IDEA Create JUnit

Source: Internet
Author: User
IDEA Create JUnit
To create junit under idea, you need to install the JUnit plug-in first, in the following steps: "Settings, Plugis, Browse repositories, File--------" Select JUnit G Enerator V2.0 installation, restart Idea "

To create a JUnit test class for a class, you can create a JUnit test class instance with "Alt+insert->junit->junit4" in that type of text, and use the JUNIT4 test class to have no dependencies, as long as you download it on the JUnit website Junit.jar Import project dependencies, or directly using Maven Import, Juint test class basic use, you can see:
http://blog.csdn.net/al_assad/article/details/76285873
When you run the JUNIT4 test class, you can run the test class with Ant,maven as long as the generic class is running, as described in: http://blog.csdn.net/al_assad/article/details/76285878




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.