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