Test-Driven Development with Java: Create higher-quality software by writing tests first with SOLID and hexagonal architecture
- Autor
- Editor
- Idioma
- Inglês
- Formato
- Categoria
Não-ficção
Test-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.
© 2023 Packt Publishing (E-book): 9781803237961
Data de lançamento
E-book: 13 de janeiro de 2023
Outros também usufruíram...
- Global Societal Collapse: The Musical: Let’s all go down singing and dancing Bart Flos
- The Woman in White Wilkie Collins
- THE PANIC ROOM: 30+ Ghost Tales by Sheridan Le Fanu: Enriched edition. Madam Crowl's Ghost, Carmilla, The Ghost and the Bonesetter, Schalken the Painter, The Haunted Baronet, The Familiar, Green Tea… Joseph Sheridan Le Fanu
- Harry Potter e a Pedra Filosofal J.K. Rowling
- Pratique o poder do "Eu posso" Bruno Gimenes
- 18 Maneiras de ser uma pessoa mais interessante Tom Hope
- 10 Maneiras de manter o foco James Fries
- A gente mira no amor e acerta na solidão Ana Suy
- O sonho de um homem ridículo Fiódor Dostoiévski
- Mais esperto que o diabo: O mistério revelado da liberdade e do sucesso Napoleon Hill
- talvez a sua jornada agora seja só sobre você: crônicas Iandê Albuquerque
- A metamorfose Franz Kafka
- Gerencie suas emoções Augusto Cury
- Sociedade do cansaço Byung-Chul Han
- Jogos vorazes Suzanne Collins
- Especialista em pessoas: Soluções bíblicas e inteligentes para lidar com todo tipo de gente. Tiago Brunet
- Harry Potter and the Philosopher's Stone J.K. Rowling
- Gatilhos mentais: O guia completo com estratégias de negócios e comunicações provadas para você aplicar Gustavo Ferreira
