Pragmatic Unit Testing in Java 8 with JUnit (Paperback)

Jeff Langr, Andy Hunt, Dave Thomas

買這商品的人也買了...

商品描述

The Pragmatic Programmers classic is back! Freshly updated for modern software development, Pragmatic Unit Testing in Java 8 With JUnit teaches you how to write and run easily maintained unit tests in JUnit with confidence. You'll learn mnemonics to help you know what tests to write, how to remember all the boundary conditions, and what the qualities of a good test are. You'll see how unit tests can pay off by allowing you to keep your system code clean, and you'll learn how to handle the stuff that seems too tough to test.

Pragmatic Unit Testing in Java 8 With JUnit steps you through all the important unit testing topics. If you've never written a unit test, you'll see screen shots from Eclipse, IntelliJ IDEA, and NetBeans that will help you get past the hard part--getting set up and started.

Once past the basics, you'll learn why you want to write unit tests and how to effectively use JUnit. But the meaty part of the book is its collected unit testing wisdom from people who've been there, done that on production systems for at least 15 years: veteran author and developer Jeff Langr, building on the wisdom of Pragmatic Programmers Andy Hunt and Dave Thomas. You'll learn:

 

  • How to craft your unit tests to minimize your effort in maintaining them.
  • How to use unit tests to help keep your system clean.
  • How to test the tough stuff.
  • Memorable mnemonics to help you remember what's important when writing unit tests.
  • How to help your team reap and sustain the benefits of unit testing.

You won't just learn about unit testing in theory--you'll work through numerous code examples. When it comes to programming, hands-on is the only way to learn!

商品描述(中文翻譯)

《Pragmatic Unit Testing in Java 8 With JUnit》是《Pragmatic Programmers》的經典之作,經過現代軟體開發的最新更新。本書教導讀者如何以自信地使用JUnit撰寫和執行易於維護的單元測試。你將學習到幫助你確定應該撰寫哪些測試、如何記住所有邊界條件以及良好測試的特質的記憶法。你將看到單元測試如何幫助你保持系統代碼的整潔,並學習如何處理看似難以測試的問題。

《Pragmatic Unit Testing in Java 8 With JUnit》逐步介紹了所有重要的單元測試主題。如果你從未撰寫過單元測試,本書中的Eclipse、IntelliJ IDEA和NetBeans的螢幕截圖將幫助你克服最困難的部分──設定和開始。

一旦掌握基礎知識,你將了解為什麼要撰寫單元測試以及如何有效地使用JUnit。但本書的精華部分是來自那些在生產系統上至少有15年經驗的資深作者和開發者Jeff Langr的單元測試智慧,他們在Pragmatic Programmers的Andy Hunt和Dave Thomas的智慧基礎上進一步發展。你將學到以下內容:

- 如何撰寫單元測試以最小化維護工作量。
- 如何使用單元測試幫助保持系統的整潔。
- 如何測試困難的部分。
- 一些易於記憶的記憶法,幫助你在撰寫單元測試時記住重要事項。
- 如何幫助你的團隊獲得和維持單元測試的好處。

本書不僅僅是理論上的單元測試知識,還包含了大量的程式碼範例。在編程方面,只有親自動手才能學到真正的知識!