Back to Browse

100% Test Coverage with TDD? Let's Try (Ep. 3)

44 views
Dec 24, 2025
14:00

Java TDD Tutorial: Testing the Join Game method with 100% code coverage! 🎮 In this Java 25 programming episode, we write comprehensive JUnit 6 tests for our Skull King card game using Test-Driven Development. 📚 What You'll Learn: ✅️ Achieving high test coverage with TDD ✅️ Testing game logic with JUnit 6 ✅️ Edge cases and boundary testing 🌟️ SUBSCRIBE ➡️️ https://www.youtube.com/@cchacin?sub_confirmation=1 🛠️ TECH STACK: • Java 25 (Records, Sealed Classes, Pattern Matching, Virtual Threads) • Quarkus (REST API + WebSocket) • JUnit 6 + AssertJ • HTMX (Frontend coming soon!) • Vavr (Functional programming) ⏱️ TIMELINE: 00:00 - Intro 00:02 - Game Creator 02:00 - Tests Refactor 03:13 - Game Created Time 08:40 - Code Coverage 09:15 - Moving Classes 12:20 - Java Modules mess 12:58 - 100% Code Coverage 13:30 - Commit and Push 13:55 - Outro 🔗 RESOURCES: • Skull King Game: https://www.grandpabecksgames.com/products/copy-of-skull-king%C2%AE • Source Code: https://github.com/cchacin/kalavera • Vavr Library: https://www.vavr.io/ 📺 SERIES PLAYLIST: https://www.youtube.com/playlist?list=PLDzfPM08YCe7xhGB38q00FceVd-K-q_CF 👨‍💻 ABOUT THIS SERIES: I love playing Skull King with my family, so I decided to build a digital version while learning modern Java features. Join me on this TDD journey — we'll make mistakes, fix bugs, and build something real together! 🔔 Subscribe for 5 new episodes every week! #Java25 #TDD #Quarkus #GameDev #Programming #JUnit6 #WebSocket #HTMX #SkullKing #LearnJava --- 🙋‍♂️ Questions? Drop them in the comments! 🫂️ BE MY FRIEND: - Twitter 🐦️: https://twitter.com/CarlosChacin 🙆🏼️ WHO AM I: I'm Carlos, a Software Engineer looking to learn and share! ❤️️

Download

0 formats

No download links available.

100% Test Coverage with TDD? Let's Try (Ep. 3) | NatokHD