Test-Driven Development with Java
eBook - ePub

Test-Driven Development with Java

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

  1. 348 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Test-Driven Development with Java

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

About this book

Drive development with automated tests and gain the confidence you need to write high-quality softwareKey Features• Get up and running with common design patterns and TDD best practices• Learn to 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 planBook DescriptionTest-driven development enables developers to craft well-designed code and prevent defects. It's a simple yet powerful tool that helps you focus on your code design, while automatically checking that your code works correctly. Mastering TDD will enable you to effectively utilize design patterns and become a proficient software architect.The book begins by explaining the basics of good code and bad code, bursting common myths, and why Test-driven development is crucial. You'll then gradually move toward building a sample application using TDD, where you'll apply the two key rhythms -- red, green, refactor and arrange, act, assert. Next, you'll learn how to bring external systems such as databases under control by using dependency inversion and test doubles. As you advance, you'll delve into advanced design techniques such as SOLID patterns, refactoring, and hexagonal architecture. You'll also balance your use of fast, repeatable unit tests against integration tests using the test pyramid as a guide. The concluding chapters will show you how to implement TDD in real-world use cases and scenarios and develop a modern REST microservice backed by a Postgres database in Java 17.By the end of this book, you'll be thinking differently about how you design code for simplicity and how correctness can be baked in as you go.What you will learn• Discover how to write effective test cases in Java• Explore how TDD can be incorporated into crafting software• Find out how to write reusable and robust code in Java• Uncover common myths about TDD and understand its effectiveness• Understand the accurate rhythm of implementing TDD• Get to grips with the process of refactoring and see how it affects the TDD processWho this book is forThis book is for expert Java developers and software architects crafting high-quality software in Java. Test-Driven Development with Java can be picked up by anyone with a strong working experience in Java who is planning to use Test-driven development for their upcoming projects.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Test-Driven Development with Java by Alan Mellor in PDF and/or ePUB format, as well as other popular books in Computer Science & Bioinformatics. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Test-Driven Development with Java
  2. Contributors
  3. Preface
  4. Part 1: How We Got to TDD
  5. 1
  6. 2
  7. 3
  8. Part 2: TDD Techniques
  9. 4
  10. 5
  11. 6
  12. 7
  13. 8
  14. 9
  15. 10
  16. 11
  17. 12
  18. Part 3: Real-World TDD
  19. 13
  20. 14
  21. 15
  22. Index
  23. Other Books You May Enjoy