1 / 893
文档名称:

Agile Java Crafting Code with Test-Driven Development.doc

格式:doc   页数:893
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

Agile Java Crafting Code with Test-Driven Development.doc

上传人:mkt365 2013/11/20 文件大小:0 KB

下载得到文件列表

Agile Java Crafting Code with Test-Driven Development.doc

文档介绍

文档介绍:Agile Java Crafting Code with Test-Driven Development
Table Of Contents
1. Agile Java Crafting Code with Test-Driven Development 11
2. Table of Contents 12
3. Copyright 20
4. Praise for Agile Java 22
5. Robert C. Martin Series 22
6. About the Author 23
7. Foreword 24
8. Acknowledgments 26
9. Introduction 27
Who Is This Book For? 28
What This Book Is Not 29
How to Use This Book 31
Exercises 32
Conventions Used in This Book 32
10. An Agile Overview 34
What Is "Agile?" 34
What Is Java? 36
Why OO? 38
What Is an Object? 38
What Are Classes? 39
Why UML? 42
What Is Inheritance? 43
Why Test-Driven Development? 44
11. Setting Up 45
Software You'll Need 46
Does It Work? 51
Hello World 52
Executing Hello World 53
Still Stuck? 55
12. Lesson 1. Getting Started 55
Testing 56
Design 57
A Simple Test 57
JUnit 60
Adding a Test 62
Creating a Student 64
Creating the Student Class 65
Constructors 67
Local Variables 68
Returning a Value from a Method 70
Assertions 72
Instance Variables 76
Summarizing the Test 80
Refactoring 80
this 83
private 86
Naming Conventions 88
Whitespace 90
Exercises 91
13. Lesson 2. Java Basics 91
CourseSession 92
Enrolling Students 93
int 94
Initialization 97
Default Constructors 98
Suites 99
The SDK and 100
Adding Objects 103
Incremental Refactoring 105
Objects in Memory 106
Packages and the import Statement 107
The Package 109
The Default Package and the package Statement 109
The setUp Method 112
More Refactoring 113
Class Constants 114
Dates 117
Overloaded Constructors 117
Deprecation Warnings 122
Refactoring 124
Creating Dates with Calendar 127