1. 首页
  2. 编程语言
  3. Java
  4. Effective Unit Testing

Effective Unit Testing

上传者: 2018-12-25 18:56:47上传 PDF文件 5.33MB 热度 72次
public class LogFileTransformerTest {private static final String END = "2005-05-23 21:21:37";private static final String START = "2005-05-23 21:20:33";private LogFile logFile;@Beforepublic void prepareLogFile() {logFile = new LogFile(START, END);}@Testpublic void overallFileStructureIsCorreEffective Unit TestingA GUIDE FOR JAVA DEVELOPERSLASSE KOSKELAMANNINGSHELTER ISLANDFor online information and ordering of this and other manning books, please visitwww.manning.com.ThepublisheroffersdiscountsonthisbookwhenorderedinquantityFor more information, please contactSpecial Sales DepartmentManning publications co20 Baldwin roadPO Box 261helter Island,NY11964Email:orders@manning.com@2013 by Manning Publications Co. All rights reservedNo part of this publication may be reproduced, stored in a retrieval system, or transmitted, inany form or by means electronic, mechanical, photocopying, or otherwise, without prior writtenpermission of the publisherMany of the designations used by manufacturers and sellers to distinguish their products areclaimed as trademarks. Where those designations appear in the book, and manningPublications was aware of a trademark claim, the designations have been printed in initial capsor all caps@o Recognizing the importance of preserving what has been written, it is Mannings policy to havethe books we publish printed on acid-free paper and we exert our best efforts to that endRecognizing also our responsibility to conserve the resources of our planet, Manning bookare printed on paper that is at least 15 percent recycled and processed without the use ofelemental chlorineManning publications coDevelopment editor: Frank Pohlman20 Baldwin roCopyeditor: Benjamin BergPO Box 261Technical proofreader: Phil hannaShelter island. ny11964Proofreader: Elizabeth martinTypesetter: Dottie marsicoCover designer: Marija TudorISBN9781935182573Printed in the united states of america12345678910=MAL-181716151413Few sights are as captivating as the pure joyoflearning new thingsbrief contentsPART 1 FOUNDATIONS ...1The promise of good tests 3In search of good 153■ Test doubles27PART 2 CATALOG454■ Readability47Maintainability 786Trustworthiness 115part 3 DIVERSIONS...............1377Testable de139riting tests in other JVM languages 1569 Speeding up test execution 170contentspreface xUacknowledgut this bookabout the cover illustration xxivPART 1 FOUNDATIONShe promise of good tests 31.1 State of the union: writing better tests 41.2 The value of having tests 5Factors of productivity 8 The curve of design potential 101. 3 Tests as a design tool 10Test-driven development 11. Behavior-driven development 131. Summary 142In search of good 152.1 Readable code is maintainable code 162.2 Structure helps make sense of things 182.8 It's not good if it's testing the wrong things 202. Independent tests run easily in solitude 21
用户评论
码姐姐匿名网友 2018-12-25 18:56:47

很不错地一本专门讲测试设计方法的书,英语版的,我在慢慢研读。