编程珠玑(影印版)
作者:Jon Bentley

定价:28.00元
 
 企业应用构架模式(影印版)
作者:马丁·福勒

定价:49.80元

  测试驱动开发:实用指南(影印版) (Test Driven Development: A Practical Guide)
 译者:Dave Astels
 定价:58.00元

 
内容简介:
  本书荣获2004年度美国《软件开发》杂志Jolt大奖。测试驱动开发(TDD)是近年来“敏捷革命”中最热的话题之一,但是,市面上鲜见与此相关的有深度的作品。这本书的出版填补了这个空白,满足了众多一线程序员的需要。作者Davis Astels将这本书看作是Kent Beck的经典作品《Test Driven Development By Example》(英文影印版及中文版由中国电力出版社出版)的补充,重点阐述利用TDD开发所必要的技术和工具上,因此对实际开发更具实用性。本书共分五部分。首先介绍了与TDD有关的基本主题,例如重构、意图编程(programming by intention),当然还有TDD背后的原理剖析。接着深入分析了一些工具和技术,例如JUNIT、模拟对象(mock objects)。第三部分主要讲解如何将TDD应用到一个真实Java项目,这是本书的精华所在,作者亲自带你进入TDD世界,告诉你如何将看似复杂的“测试为先”在项目开发中尽情演绎。第四部分逐一概述了xUnit家族成员,如RUBYUNIT、SUNIT等。附录包含极限编程和敏捷开发的入门材料,以及一些在线资源。本书还包含了大量练习题并附有详尽的参考答案,以方便读者的学习,加深读者对本书内容的理解。

   Test-Driven Development: A Practical Guide presents TDD from the perspective of the working programmer: real projects, real challenges, real solutions, ...real code. Dave Astels explains TDD through a start-to-finish project written in Java and using JUnit. He introduces powerful TDD tools and techniques; shows how to utilize refactoring, mock objects, and "programming by intention"; even introduces TDD frameworks for C++, C#/.NET, Python, VB6, Ruby, and Smalltalk. Invaluable for anyone who wants to write better code... and have more fun doing it !
 
目录:

Foreword.


Preface.


I. BACKGROUND.

1. Test-Driven Development.

What Is Test-Driven Development? Let the Computer Tell You. A Quick Example. Summary.

2. Refactoring.

What Is Refactoring? When to Refactor. How to Refactor. Some Important Refactorings. Refactoring to Patterns. Summary.

3. Programming By Intention.

Names. Simplicity. Warranted Assumptions. How to Program by Intention. “No Comment”. Summary.

II. TOOLS AND TECHNIQUES.

4. JUNIT.

Architectural Overview. The Assertions. Writing a TestCase. Running Your Tests. Using setUp() and tearDown(). Using TestSuite. How Does It All Fit Together? Where Do Tests Belong? Tips. Summary.

5. JUNITEXTENSIONS.

Standard Extensions. Adding Missing Asserts with MockObjects. Performance and Scalability with JUnitPerf. Daedalos JUnit Extensions. Writing XML-Based Tests with xmlUnit. Gargoyle Software JUnit Extensions.

6. JUNIT-Related Tools.

Jester. NoUnit. Clover. Eclipse. IDEA.

7. MockObjects.

Mock Objects. An Illustrative Example. Uses for Mock Objects. Wouldn't It Be Nice? A Common Example. The MockObjects Framework. MockMaker. EasyMock. Summary.

8. Developing a GUI Test-First.

The Example. The AWT Robot. Brute Force. JFCUnit. Jemmy. Ultra-Thin GUI. Summary.

III. A JAVA PROJECT: TEST-DRIVEN END TO END.

9. THEPROJECT.

Overview. User Stories and Tasks.

10. Movie List.

Make a Movie Container. Make a Movie List GUI. Add a Movie in the GUI. Retrospective.

11. Movies Can Be Renamed.

Support Movie Name Editing. Movie Rename GUI. Retrospective.

12. Movies Are Unique.

Movies Are Unique. Error Message on Non-Uniqueness. Retrospective.

13. Ratings.

Add a Single Rating to Movie. Show the Rating in the GUI. Edit the Rating. Retrospective.

14. Categories.

Add a Category. Show the Category in the GUI. Add a Selection of Category. Retrospective.

15. Filter On Category.

Get a Sublist Based on Category. Support an ALL category. Add a Category Selector to the GUI. Handle Changing a Movie's Category. Interface Cleanup. Retrospective.

16. Persistence.

Write to a Flat File. Save-As in GUI. Save in GUI. Read from a Flat File. Load in GUI. Retrospective.

17. Sorting.

Compare Movies. Sort a MovieList. Ask a MovieListEditor for Sorted Lists. Add a Way to Sort to the GUI. Retrospective.

18. Multiple Ratings.

Multiple Ratings. Rating Source. Revised Persistence. Show Multiple Ratings in the GUI. Add a Rating in the GUI. Remove the Single-Rating Field. Retrospective.

19. Reviews.

Add a Review to Ratings. Save Review. Load Review. Display Review. Add a Review. Retrospective.

20. Project Retrospective.

The Design. Test vs Application. Test Quality. Our Use of Mocks. General Comments. Debugging. List of Tests. Summary.

IV. XUNIT FAMILY MEMBERS.

21. RUBYUNIT.


22. SUNIT.


23. CPPUNIT.


24. NUNIT.


25. PYUNIT.


26. VBUNIT.


V. APPENDICES.

Appendix A: Extreme Programming.

The Agile Revolution. eXtreme Programming. The Four Variables. The Values. The Practices. Summary.

Appendix B: Agilemodeling.

The Myths Surrounding Modeling. An Introduction to Agile Modeling (AM). What Are Agile Models?

Appendix C: Online Resources.

Forums. Information on Agile Processes. Information on Extreme Programming. JUnit-Related Software. JUnit-Related Information. Tools. Other XUnit Family Members. Companies. Miscellaneous.

Appendix D: Answers To Exercises.

Bibliography.

Index.

Copyright ©1998~2004 华储网. All rights reserved。
To comment on this site,E-mail :
webmaster@huachu.com.cn
<% set rs=nothing conn_tsmlk.close set conn_tsmlk=nothing endtime=timer() response.write "页面执行时间:"&FormatNumber((endtime-startime)*1000,3)&"毫秒" %>