Introduction of the JUnit tool framework in JAVA

Source: Internet
Author: User

Tag: The source null pointer will add technology sharing using the Main method class to load. com

The trouble I have: Start directly on the video to do, directly is also introduced to his jar above

, but I only introduced one, that is, the above Junit-4.4.jar, then will be error, will appear, null pointer errors,

I followed the online tutorial

What should be said here is to try to use the JUnit jar package from Eclipse, the result is error in workplace, and then I find that the source is empty when I add junit to libraries, so I find that Should be less a source package, so go online to download the corresponding source jar, properly configured as

Then the test again, incredibly, there is a class can not find the situation, was thinking of God why so to me when, suddenly think of class find not many exception inside may be your main method does not, here will involve the problem of class loading, on the unknown solution, Finally add, then success, wit like me ... Ha ha haha

Introduction of the JUnit tool framework in JAVA

Related Article

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.