Get Free Shipping on orders over $79
Test-Driven Development with Java : Create higher-quality software by writing tests first with SOLID and hexagonal architecture - Alan Mellor

Test-Driven Development with Java

Create higher-quality software by writing tests first with SOLID and hexagonal architecture

By: Alan Mellor

eText | 13 January 2023 | Edition Number 1

At a Glance

eText


$54.99

or 4 interest-free payments of $13.75 with

 or 

Instant online reading in your Booktopia eTextbook Library *

Why choose an eTextbook?

Instant Access *

Purchase and read your book immediately

Read Aloud

Listen and follow along as Bookshelf reads to you

Study Tools

Built-in study tools like highlights and more

* eTextbooks are not downloadable to your eReader or an app and can be accessed via web browsers only. You must be connected to the internet and have no technical issues with your device or browser that could prevent the eTextbook from operating.

Drive development with automated tests and feel confident about writing high-quality software

Key Features

  • Get up and running with common design patterns and best practices involved in TDD
  • Apply the rhythms of TDD - arrange, act, assert and red, green, refactor
  • Understand the challenges of implementing TDD in the Java ecosystem and build a plan

Book Description

Test-Driven Development enables developers to craft well-designed code and prevent defects. It is a simple, yet powerful, tool to focus us on the design of our code, whilst automatically checking that our code works correctly. Mastering TDD will instill some efficient design patterns and help you become an excellent software architect.

The book will begin by getting the basics by explaining good code and bad code, bursting common myths, and explaining why Test-driven development is crucial. Then we will gradually move toward building a sample application using TDD, where we will apply the two key rhythms of red, green, refactor and arrange, act, assert. We will lean how to bring external systems like databases under control by using dependency inversion and test doubles. We will then delve into some advanced design techniques like SOLID patterns, Refactoring and Hexagonal Architecture. Using the Test Pyramid as a guide, we will balance our use of fast, repeatable unit tests against integration tests. Towards the end of the book, you will work towards implementing TDD in real-world use cases and scenarios, developing a modern REST microservice backed by a Postgres database in Java 17.

By the end of this book, you will be thinking differently about how you design code for simplicity and how correctness can be baked in as you go.

What you will learn

  • Write effective test cases in Java
  • Explore how TDD can be incorporated into crafting software
  • Learn to write reusable and robust code in Java
  • Uncover common myths about TDD and understand its effectiveness
  • Understand the accurate rhythm of implementing TDD
  • Understand the process of refactoring and how it affects the TDD process

Who This Book Is For

The book is targeted at expert java developers and software architects crafting high-quality software in Java. This book can be picked up by anyone with strong working experience in Java and planning to use Test-driven development for their upcoming projects.

Table of Contents

  1. Why good code goes bad
  2. TDD: Clean code, correct code
  3. Common myths about TDD
  4. Building a typical application using TDD
  5. Writing our First Test
  6. The rhythm of TDD: Red, Green, Refactor
  7. Driving Design: TDD and SOLID
  8. Test Doubles: Stubs and Mocks
  9. Hexagonal Architecture: Decoupling external systems
  10. FIRST Tests and the Test Pyramid
  11. TDD and the role of manual testing
  12. Test First, Test Later, Test Never
  13. Driving the domain layer
  14. Driving the database layer
  15. Driving the Web adapter
on
Desktop
Tablet
Mobile

More in Computer Science

Amazon.com : Get Big Fast - Robert Spector

eBOOK

ReFormat : Windows 11 - Adam Natad

eBOOK

AI-Powered Search - Trey Grainger

eBOOK