Web album Development (3)--Test-driven development (TDD)

Source: Internet
Author: User

Test-driven Development theory has been put forward for many years, here about his principles and advantages I do not say, I will outline the practice of the use of TDD process.

Fill a Jar:commons-pool-1.4.jar

Process

1. Build test Case running environment

2. Writing interface class

3. Write Test cases for interface class

4, implement the interface class, write the corresponding function code

5, run the test

6, if not passed, modified until passed

7, cycle to complete other functions

Build test Case running environment

One of the main benefits of the dependency injection technology used by spring is that your code relies more heavily on the container than the traditional Java EE development. With the test framework Spring TestContext framework provided by spring, it becomes very easy to build a test case runtime environment. The detailed usage of the Spring TestContext framework is referenced in Chapter 8.3.7 of the Spring2.5 reference manual.

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.