TDD 第一章 使用入门(一)

    本书前半部分的大多课程都与学生信息管理系统各个部分的开发相关。你所要做的不是构建一个完整的系统,而是一个完整系统的各个子系统。
   
    学生信息管理系统涉及了学生注册,班级管理,课程安排,缴费,记录等维持学校正常工作的众多方面。

    在第一章中,你将会:
   
    建立一个简单的Java类

    创建该Java类的测试类
   
    使用Junit测试框架
 
    学习构造函数
   
    重构你写的代码

    这一章在细节上是面向对象的。为了使你写出合适的测试和代码,我将花大篇幅来向你介绍使用测试驱动开发中所要遵循的步骤。
   
引用
Most of the lessons in the first half of Agile Java involve the development of various pieces of a student information system. You will not build a complete system, but you will work on various subsystems that might be part of a complete system.

The student information system involves many different aspects of running a school or university: registration, grades, course scheduling, billing, records, and so on.

In Lesson 1, you will:

create a simple Java class

create a test class that exercises the Java class

use the JUnit framework

learn about constructors

refactor the code that you write

This lesson is very detail oriented. I will explicitly describe the steps you should take in doing test-driven development. Future lessons will assume that you are following the cycle of test-driven development in order to produce appropriate tests and code.



[color=black][/color]

你可能感兴趣的:(java,工作,框架,TDD,JUnit)