What is a unit test unit that can be easily understood as a module in the program, one method. The unit test is also a test after completing each module. From ensuring that each module is no problem, improve the overall program quality. The benefits of doing unit testing For real masters may not need to use unit testing, according to the description in Software Technology, the real master has a small problem, and the problem is very early, and it is often not found before the user has not found the problem. The master has already solved the problem. (However, most masters may not be tested according to the rules, but they have been tested in their own way), so I think the benefits of unit testing are the quality of programming. The destination unit test of the unit test is exposed to failures and errors. The possibility of failure is expected and can be checked using an assertion. The error is an unpredictable problem, such as ArrayIndexOutboundSexception. The means of unit testing is divided into white box testing and black box testing. White box test: I know how to test the software (how) complete function and what kind of functionality (what), white box testing is generally completed by the developer. Black box test: I only know what WHAT is tested, and the black box test is generally carried out by the tester. Unit testing is a white box test to verify that the design is in line with requirements. When designing test cases, a reasonable input condition and unreasonable input condition should be included.