ورود به حساب

نام کاربری گذرواژه

گذرواژه را فراموش کردید؟ کلیک کنید

حساب کاربری ندارید؟ ساخت حساب

ساخت حساب کاربری

نام نام کاربری ایمیل شماره موبایل گذرواژه

برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید


09117307688
09117179751

در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید

دسترسی نامحدود

برای کاربرانی که ثبت نام کرده اند

ضمانت بازگشت وجه

درصورت عدم همخوانی توضیحات با کتاب

پشتیبانی

از ساعت 7 صبح تا 10 شب

دانلود کتاب JUnit recipes : practical methods for programmer testing

دانلود کتاب دستور العمل های JUnit: روش های عملی برای آزمایش برنامه نویس

JUnit recipes : practical methods for programmer testing

مشخصات کتاب

JUnit recipes : practical methods for programmer testing

ویرایش:  
نویسندگان: ,   
سری:  
ISBN (شابک) : 9781932394238, 1932394338 
ناشر: Manning 
سال نشر: 2005 
تعداد صفحات: 752 
زبان: English 
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود) 
حجم فایل: 14 مگابایت 

قیمت کتاب (تومان) : 35,000



ثبت امتیاز به این کتاب

میانگین امتیاز به این کتاب :
       تعداد امتیاز دهندگان : 14


در صورت تبدیل فایل کتاب JUnit recipes : practical methods for programmer testing به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.

توجه داشته باشید کتاب دستور العمل های JUnit: روش های عملی برای آزمایش برنامه نویس نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.


توضیحاتی در مورد کتاب دستور العمل های JUnit: روش های عملی برای آزمایش برنامه نویس



وقتی تست کردن به عادت توسعه‌دهنده تبدیل می‌شود، اتفاقات خوبی رخ می‌دهد - بهره‌وری خوب، کد خوب، و رضایت شغلی خوب. اگر مقداری از آن را می‌خواهید، برای شروع عادت آزمایشی یا ادامه دادن به آن، راهی بهتر از «دستورالعمل‌های JUnit» وجود ندارد، در این کتاب صد و سی و هفت راه‌حل برای این کار پیدا خواهید کرد. طیف وسیعی از مشکلات، از ساده تا پیچیده، که توسط یک توسعه دهنده و تستر مجرب برای شما انتخاب شده است. هر دستور غذا از همان سازمانی پیروی می کند که مشکل و پیشینه آن را قبل از بحث در مورد گزینه های خود در حل آن به شما می دهد.
JUnit - چارچوب تست واحد برای جاوا - برای استفاده ساده است، اما آزمایش برخی از کدها ممکن است مشکل باشد. وقتی با چنین کدی روبرو می شوید، از داشتن این کتاب خوشحال خواهید شد. این یک مرجع پر از توصیه های عملی در مورد همه مسائل تست است، از نحوه نام گذاری کلاس های مورد آزمایشی تا نحوه آزمایش برنامه های کاربردی پیچیده J2EE. توصیه‌های ارزشمند آن شامل موارد جانبی است که می‌تواند سود بزرگی داشته باشد، مانند نحوه سازماندهی داده‌های تست یا نحوه مدیریت منابع آزمون گران قیمت.
چه چیزی در داخل است:
- شروع به کار با JUnit
- دستور العمل برای:
سرولت ها
JSP
EJB
کد پایگاه داده
خیلی بیشتر
- دشوار است طرح‌های آزمایشی، و نحوه رفع آنها
- چگونه آزمایش باعث صرفه‌جویی در زمان می‌شود
- پسوند JUnit را انتخاب کنید:
HTMLUnit
XMLUnit
ServletUnit
EasyMock
و موارد دیگر!


توضیحاتی درمورد کتاب به خارجی

When testing becomes a developer's habit good things tend to happen--good productivity, good code, and good job satisfaction. If you want some of that, there's no better way to start your testing habit, nor to continue feeding it, than with'''' JUnit Recipes,'''' In this book you will find one hundred and thirty-seven solutions to a range of problems, from simple to complex, selected for you by an experienced developer and master tester. Each recipe follows the same organization giving you the problem and its background before discussing your options in solving it.
JUnit - the unit testing framework for Java - is simple to use, but some code can be tricky to test. When you're facing such code you will be glad to have this book. It is a how-to reference full of practical advice on all issues of testing, from how to name your test case classes to how to test complicated J2EE applications. Its valuable advice includes side matters that can have a big payoff, like how to organize your test data or how to manage expensive test resources.
What's Inside:
- Getting started with JUnit
- Recipes for:
servlets
JSPs
EJBs
Database code
much more
- Difficult-to-test designs, and how to fix them
- How testing saves time
- Choose a JUnit extension:
HTMLUnit
XMLUnit
ServletUnit
EasyMock
and more!



فهرست مطالب

contents......Page 3
Part 1 The building blocks......Page 11
Fundamentals......Page 12
1.1 What is Programmer Testing?......Page 13
1.2 Getting started with JUnit......Page 19
1.3 A few good practices......Page 26
1.4 Summary......Page 29
Elementary tests......Page 31
2.1 Test your equals method......Page 35
2.2 Test a method that returns nothing......Page 42
2.3 Test a constructor......Page 46
2.4 Test a getter......Page 50
2.5 Test a setter......Page 53
2.6 Test an interface......Page 57
2.7 Test a JavaBean......Page 63
2.8 Test throwing the right exception......Page 65
2.9 Let collections compare themselves......Page 70
2.10 Test a big object for equality......Page 72
2.11 Test an object that instantiates other objects......Page 75
Organizing and building JUnit tests......Page 80
3.1 Place test classes in the same package as production code......Page 83
3.2 Create a separate source tree for test code......Page 86
3.3 Separate test packages from production code packages......Page 88
3.4 Factor out a test fixture......Page 92
3.5 Factor out a test fixture hierarchy......Page 96
3.6 Introduce a Base Test Case......Page 99
3.7 Move special case tests to a separate test fixture......Page 101
3.8 Build tests from the command line......Page 103
3.9 Build tests using Ant......Page 105
3.10 Build tests using Eclipse......Page 108
Managing test suites......Page 111
4.1 Let JUnit build your test suite......Page 112
4.2 Collect a specific set of tests......Page 116
4.3 Collect all the tests in a package......Page 120
4.4 Collect all the tests for your entire system......Page 123
4.5 Scan the file system for tests......Page 125
4.6 Separate the different kinds of test suites......Page 129
4.7 Control the order of some of your tests......Page 132
4.8 Build a data-driven test suite......Page 136
4.9 Define a test suite in XML......Page 142
Working with test data......Page 145
5.1 Use Java system properties......Page 147
5.2 Use environment variables......Page 151
5.3 Use an inline data file......Page 154
5.4 Use a properties file......Page 156
5.5 Use ResourceBundles......Page 161
5.6 Use a file-based test data repository......Page 163
5.7 Use XML to describe test data......Page 165
5.8 Use Ant’s task to work with a database......Page 166
5.9 Use JUnitPP......Page 168
5.10 Set up your fixture once for the entire suite......Page 170
5.11 Perform environment setup once for multiple test runs......Page 173
5.12 Use DbUnit......Page 179
Running JUnit tests......Page 182
6.1 See the name of each test as it executes......Page 186
with a text-based test runner......Page 187
6.3 Execute a single test......Page 189
6.4 Execute each test in its own JVM......Page 190
6.5 Reload classes before each test......Page 191
6.6 Ignore a test......Page 194
Reporting JUnit results......Page 197
7.1 Using a Base Test Case with a logger......Page 199
7.2 Using Log4Unit......Page 203
7.3 Getting plain text results with Ant......Page 207
7.4 Reporting results in HTML with Ant’s task......Page 211
7.5 Customizing XML reports with XSLT......Page 214
7.6 Extending Ant’s JUnit results format......Page 217
7.7 Implementing TestListener and extending TestRunner......Page 224
7.8 Reporting a count of assertions......Page 233
Troubleshooting JUnit......Page 242
8.1 JUnit cannot find your tests......Page 244
8.2 JUnit does not execute your custom test suite......Page 246
8.3 JUnit does not set up your test fixture......Page 248
8.4 Test setup fails after overriding runTest()......Page 250
8.5 Your test stops after the first assertion fails......Page 253
8.6 The graphical test runner does not load your classes properly......Page 259
8.7 JUnit fails when your test case uses JAXP......Page 261
8.8 JUnit fails when narrowing an EJB reference......Page 262
Part 2 Testing J2EE......Page 265
Designing J2EE applications for testability......Page 266
The Coffee Shop application......Page 270
Testing and XML......Page 272
9.1 Verify the order of elements in a document......Page 280
9.2 Ignore the order of elements in an XML document......Page 284
9.3 Ignore certain differences in XML documents......Page 288
9.4 Get a more detailed failure message from XMLUnit......Page 295
9.5 Test the content of a static web page......Page 297
9.6 Test an XSL stylesheet in isolation......Page 304
9.7 Validate XML documents in your tests......Page 309
Testing and JDBC......Page 315
10.1 Test making domain objects from a ResultSet......Page 324
10.2 Verify your SQL commands......Page 329
10.3 Test your database schema......Page 334
10.4 Verify your tests clean up JDBC resources......Page 342
10.5 Verify your production code cleans up JDBC resources......Page 350
10.6 Manage external data in your test fixture......Page 353
10.7 Manage test data in a shared database......Page 356
10.8 Test permissions when deploying schema objects......Page 359
10.9 Test legacy JDBC code without the database......Page 364
10.10 Test legacy JDBC code with the database......Page 367
10.11 Use schema-qualified tables with DbUnit......Page 370
10.12 Test stored procedures......Page 373
Testing Enterprise JavaBeans......Page 377
11.1 Test a session bean method outside the container......Page 385
11.2 Test a legacy session bean......Page 394
11.3 Test a session bean method in a real container......Page 401
11.4 Test a CMP entity bean......Page 404
11.5 Test CMP meta data outside the container......Page 407
11.6 Test a BMP entity bean......Page 415
11.7 Test a message-driven bean inside the container......Page 421
11.8 Test a message-driven bean outside the container......Page 427
11.9 Test a legacy message-driven bean......Page 429
without the messaging server......Page 433
11.11 Test JMS message-processing logic......Page 437
11.12 Test a JMS message producer......Page 440
11.13 Test the content of your JNDI directory......Page 446
Testing web components......Page 450
12.1 Test updating session data without a container......Page 453
12.2 Test updating the HTTP session object......Page 459
12.3 Test rendering a JavaServer Page......Page 463
12.4 Test rendering a Velocity template......Page 472
12.5 Test a JSP tag handler......Page 475
12.6 Test your JSP tag library deployment......Page 481
12.7 Test servlet initialization......Page 484
12.8 Test the ServletContext......Page 487
12.9 Test processing a request......Page 490
12.10 Verify web page content without a web server......Page 498
12.11 Verify web form attributes......Page 501
12.12 Verify the data passed to a page template......Page 502
12.13 Test a web resource filter......Page 507
Testing J2EE applications......Page 515
13.1 Test page flow......Page 517
13.2 Test navigation rules in a Struts application......Page 526
13.3 Test your site for broken links......Page 529
13.4 Test web resource security......Page 532
13.5 Test EJB resource security......Page 537
13.6 Test container-managed transactions......Page 543
Part 3 More JUnit techniques......Page 547
Testing design patterns......Page 548
14.1 Test an Observer (Event Listener)......Page 550
14.2 Test an Observable (Event Source)......Page 555
14.3 Test a Singleton......Page 561
14.4 Test a Singleton’s client......Page 564
14.5 Test an object factory......Page 567
14.6 Test a template method’s implementation......Page 571
GSBase......Page 577
15.1 Verify events with EventCatcher......Page 579
15.2 Test serialization......Page 582
15.3 Test object cloning......Page 584
15.4 Compare JavaBeans using “appears equal”......Page 586
JUnit-addons......Page 590
16.1 Test your class for compareTo()......Page 592
16.2 Collect tests automatically from an archive......Page 595
16.3 Organize test data using PropertyManager......Page 596
16.4 Manage shared test resources......Page 598
16.5 Ensure your shared test fixture tears itself down......Page 602
16.6 Report the name of each test as it executes......Page 604
Odds and ends......Page 608
17.1 Clean up the file system between tests......Page 610
17.2 Test your file-based application without the file system......Page 613
17.3 Verify your test case class syntax......Page 619
17.4 Extract a custom assertion......Page 622
17.5 Test a legacy method with no return value......Page 625
17.6 Test a private method if you must......Page 630
Complete solutions......Page 634
A.1 Define a test suite in XML......Page 635
A.2 Parameterized Test Case overriding runTest()......Page 639
A.3 Ignore the order of elements in an XML document......Page 642
A.4 Test an XSL stylesheet in isolation......Page 644
A.5 Validate XML documents in your tests......Page 650
A.6 Aspect-based universal Spy......Page 654
A.7 Test a BMP entity bean......Page 658
Essays on testing......Page 678
B.1 Too simple to break......Page 679
B.2 Strangeness and transitivity......Page 682
B.3 Isolate expensive tests......Page 686
B.4 The mock objects landscape......Page 694
Reading List......Page 701
references......Page 705
index......Page 710




نظرات کاربران