JUNIT4 study, in fact, the basic idea is still those, but adopted the new annotation format syntax

Source: Internet
Author: User

See the deep Dive into JUnit 4 (http://www.ibm.com/developerworks/cn/education/java/j-junit4/index.html)

This is mainly about the difference between the new note-based JUnit and the previous 3.x version of JUnit, how to use JUNIT4 to accomplish junit3.x similar work, and what the advantages of using JUNIT4 should be JUnit3. After looking at it, I found out that JUNIT4 is an incompatible version of JUNIT3. Actually JUNIT4 this kind of grammar, feels and NUnit's grammar very much resembles, Java's annotation and C # 's property actually basically is one thing, two languages actually really mutually learns, feels in the language aspect, C # These years progress is faster than Java. Then these days after using Eclipse to create the Activiti project, always prompt the import org.junit can not be resolved. Looking at the dependencies in the Pom file, using the 4.11 version of JUnit, there is no problem, but the project's dependencies are not visible in the workspace of the project. But I created another MAVEN-type project to see the project's dependencies, and I didn't understand why. This is the pain that must be experienced at the beginning after switching a technical route, and it is necessary to keep the principles of these Java infrastructures eclipse/ant/maven/junit/spring and so on, so that the road ahead can be smoother.



JUNIT4 study, in fact, the basic idea is still those, but adopted the new annotation format syntax

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.