Practice Work 2 Person project work

Source: Internet
Author: User

I. Introduction of the topic

1. Personal Calculator Production

2. Basic subtraction operation is possible

Second, the source of GitHub links

Https://github.com/zhangtiantian1234/CalculatorTest

Third, the design of the module test cases, test results

1. Once the booktest is written, it is ready to run. The results of the operation are as follows:

2. You can see the "JUnit" column on the left side of the picture, and there are two more errors inside. But the error is within the expectation.

Cause of the error:

Test results:

Iv. problems and solutions, experience

Through the test of JUNIT4 program module and regression test, I understand that in the course of testing, our test class is a separate class without any parent class, and the name of the test class can be arbitrarily named without any limitations. So we cannot tell by the declaration of the class that it is not a test class, it differs from a normal class in that it is a declaration of its internal methods. It is much easier to test through JUNIT4 during the Java program writing process, reducing the error rate.

Practice Work 2 Person project work

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.