Instant Test Driven Development with Java, JUnit and Mockito

  • Course provided by Udemy
  • Study type: Online
  • Starts: Anytime
  • Price: See latest price on Udemy
Udemy

Course Description

This course will get you up to speed with JUnit and TDD in next to no time with a mixture of Instant Demos, Deep Dives and Philosophy lectures.

In the Instant Demo you'll quickly get a feeling for how things will work once you're an expert. No getting distracted by detail, just the real life feel of using the techniques.

With a Deep Dive we will unpack all the necessary detail to enrich your understanding.

The Philosophy lectures will give you the fundamentals from which you can grow your own knowledge.

Building your knowledge from the inside out with realistic examples means you will understand TDD quickly and deeply. Hopefully this course will make you excited about what TDD can do for you.

Includes:

  • JUnit 4.12

  • Mockito 2

  • Spring Testing

  • Parameterized tests

  • Various other JUnit runners

Written by the author of The Coding Craftsman WordPress blog.

Who this course is for:

  • Java developer looking to become an expert in Test Driven Development and the JUnit ecosystem.

Instructor

Software Engineer and mentor with over 15 years of TDD experience
  • 4.6 Instructor Rating
  • 407 Reviews
  • 3,386 Students
  • 1 Course

Ashley is a hands on Software Engineering Consultant, Technical Author and Mentor.

As a TDD enthusiast, he has contributed to Open Source TDD projects, including Spectrum BDD and a minor contribution to Mockito to aid its use with Java 8.

As well as running his own software development consultancy, Ashley works for Baeldung as a Technical Editor, and has produced training content for Packt.

He is a passionate and energetic evangelist of Agile, TDD and Clean Coding and wants everyone to be able to deliver beautiful code that keeps working. He writes extensively about this in his CodingCraftsman Wordpress blog.

In his spare time he is also a stand-up comedian, though tends to keep quiet about unit tests while on stage!

Expected Outcomes

  1. Write unit tests with confidence. Understand the various patterns and techniques to apply in different situations. Go from Zero to Hero with your Java TDD skillz! Curated for the Udemy Business collection Course content 10 sections • 49 lectures • 3h 51m total length Expand all sections Introduction 1 lecture • 1min Introduction Preview 01:16 The Basics 9 lectures • 54min TDD Instant Demo Preview 03:20 Deep Diving The Instant Demo Preview 04:06 Longer Example 12:00 TDD Philosophy 04:27 The 1-2-3 of Testing 03:28 Deeper Example - Word Count 19:03 Setting up a new Project (IntelliJ) 02:38 Setting up a new Project (Maven) 02:45 The Basics: Summary 01:50 Basic Testing with Mocks using Mockito 4 lectures • 24min Instant Demo 09:40 Deep Diving the Mockito Instant Demo 04:29 Switch to the Mockito Runner 03:22 Philosophy of Mocking 06:31 JUnit in more Depth 9 lectures • 38min The JUnit assertions library 10:05 Testing when exceptions are thrown 02:08 Adding a timeout to your test methods 01:41 Ignoring tests 02:48 The JUnit testlifecycle 07:16 Before and After 05:05 Introduction to JUnit rules - Expected Exception Rule 03:32 The Temporary Folder Rule 02:22 Extending JUnit - the Runners and Rules 03:29 More Assertions 3 lectures • 17min Hamcrest and assertThat 07:39 AssertJ, assertThat and fluent assertions 06:08 AssertJ for assertion of exceptions in Java 8 02:54 Parameterized Tests 6 lectures • 15min Why parameterize? 02:34 JUnit Parameterized Runner Instant Demo 03:25 JUnit Parameterized Runner Deep Dive 02:37 JUnitParams Instant Demo 03:56 JUnit Params Deep Dive 01:53 Summary of Parameterized Tests 00:59 Mockito in more Depth 9 lectures • 33min Mockito in Depth 03:29 Returning Different Values 03:23 Variations on verify 08:59 Then throw 03:23 Answer me this 03:16 A quick spy at Spy 02:36 BDD Mockito 01:37 Switching from when/then to do/when 03:30 Earn $$$ by avoiding Mockito altogether with Java 8 02:30 Testing Spring with SpringJUnitRunner 4 lectures • 36min Spring Testing Examples - Is This For You? 00:44 Testing with Spring Instant Demo 09:39 Testing with Spring Deep Dive 04:08 A big ol' worked example of TDD to build a Spring Rest API 21:04 Other JUnit Runners 2 lectures • 6min Spectrum BDD: a short tour 06:08 More runners 00:08 Some final thoughts 2 lectures • 7min And now to test... 06:27 Growing the course Preview 00:47 Requirements Basic understanding of programming and Java. Description This course will get you up to speed with JUnit and TDD in next to no time with a mixture of Instant Demos , Deep Dives and Philosophy lectures. In the Instant Demo you'll quickly get a feeling for how things will work once you're an expert. No getting distracted by detail, just the real life feel of using the techniques. With a Deep Dive we will unpack all the necessary detail to enrich your understanding. The Philosophy lectures will give you the fundamentals from which you can grow your own knowledge. Building your knowledge from the inside out with realistic examples means you will understand TDD quickly and deeply. Hopefully this course will make you excited about what TDD can do for you. Includes: JUnit 4.12 Mockito 2 Spring Testing Parameterized tests Various other JUnit runners Written by the author of The Coding Craftsman WordPress blog. Who this course is for: Java developer looking to become an expert in Test Driven Development and the JUnit ecosystem. Show more Show less Featured review Paul Yorde 103 courses 23 reviews Rating: 5.0 out of 5 2 years ago Having been studying and professionally working with JUnit for several years now, this is the most comprehensive, exhaustive, and built up course I've seen. It has finally taught me how to easily apply TDD to building succinctly written code. Thank you!!! Show more Show less Instructor Ashley Frieze Software Engineer and mentor with over 15 years of TDD experience 4.6 Instructor Rating 407 Reviews 3,386 Students 1 Course Ashley is a hands on Software Engineering Consultant, Technical Author and Mentor. As a TDD enthusiast, he has contributed to Open Source TDD projects, including Spectrum BDD and a minor contribution to Mockito to aid its use with Java 8. As well as running his own software development consultancy, Ashley works for Baeldung as a Technical Editor, and has produced training content for Packt. He is a passionate and energetic evangelist of Agile, TDD and Clean Coding and wants everyone to be able to deliver beautiful code that keeps working. He writes extensively about this in his CodingCraftsman Wordpress blog. In his spare time he is also a stand-up comedian, though tends to keep quiet about unit tests while on stage! Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'6777a6764a054251',m:'13158d8f2e46d471dfdb2c81b4811b36b1a519cd-1627743144-1800-Aandwxnk92pM/g8Hgljw4yuz984EgFN63VWehaxTIc3RHnjeyhJFUT7HLJaJbocvusQ1Dyd6phz1g5YOjVhgeg27DNThoW0FLiv5Ly8uxY9zfHBdFRk2hU6B83mGH87/N+2bljLGbSDBScyV5yRZ6wJXYzMKCGdUnYIvJZRTUZi7Bx0l1ZxUWn2f4DillqExSQ==',s:[0x54e2cc1da6,0x3f8860bbcc],}})();
  2. Go from Zero to Hero with your Java TDD skillz! Curated for the Udemy Business collection Course content 10 sections • 49 lectures • 3h 51m total length Expand all sections Introduction 1 lecture • 1min Introduction Preview 01:16 The Basics 9 lectures • 54min TDD Instant Demo Preview 03:20 Deep Diving The Instant Demo Preview 04:06 Longer Example 12:00 TDD Philosophy 04:27 The 1-2-3 of Testing 03:28 Deeper Example - Word Count 19:03 Setting up a new Project (IntelliJ) 02:38 Setting up a new Project (Maven) 02:45 The Basics: Summary 01:50 Basic Testing with Mocks using Mockito 4 lectures • 24min Instant Demo 09:40 Deep Diving the Mockito Instant Demo 04:29 Switch to the Mockito Runner 03:22 Philosophy of Mocking 06:31 JUnit in more Depth 9 lectures • 38min The JUnit assertions library 10:05 Testing when exceptions are thrown 02:08 Adding a timeout to your test methods 01:41 Ignoring tests 02:48 The JUnit testlifecycle 07:16 Before and After 05:05 Introduction to JUnit rules - Expected Exception Rule 03:32 The Temporary Folder Rule 02:22 Extending JUnit - the Runners and Rules 03:29 More Assertions 3 lectures • 17min Hamcrest and assertThat 07:39 AssertJ, assertThat and fluent assertions 06:08 AssertJ for assertion of exceptions in Java 8 02:54 Parameterized Tests 6 lectures • 15min Why parameterize? 02:34 JUnit Parameterized Runner Instant Demo 03:25 JUnit Parameterized Runner Deep Dive 02:37 JUnitParams Instant Demo 03:56 JUnit Params Deep Dive 01:53 Summary of Parameterized Tests 00:59 Mockito in more Depth 9 lectures • 33min Mockito in Depth 03:29 Returning Different Values 03:23 Variations on verify 08:59 Then throw 03:23 Answer me this 03:16 A quick spy at Spy 02:36 BDD Mockito 01:37 Switching from when/then to do/when 03:30 Earn $$$ by avoiding Mockito altogether with Java 8 02:30 Testing Spring with SpringJUnitRunner 4 lectures • 36min Spring Testing Examples - Is This For You? 00:44 Testing with Spring Instant Demo 09:39 Testing with Spring Deep Dive 04:08 A big ol' worked example of TDD to build a Spring Rest API 21:04 Other JUnit Runners 2 lectures • 6min Spectrum BDD: a short tour 06:08 More runners 00:08 Some final thoughts 2 lectures • 7min And now to test... 06:27 Growing the course Preview 00:47 Requirements Basic understanding of programming and Java. Description This course will get you up to speed with JUnit and TDD in next to no time with a mixture of Instant Demos , Deep Dives and Philosophy lectures. In the Instant Demo you'll quickly get a feeling for how things will work once you're an expert. No getting distracted by detail, just the real life feel of using the techniques. With a Deep Dive we will unpack all the necessary detail to enrich your understanding. The Philosophy lectures will give you the fundamentals from which you can grow your own knowledge. Building your knowledge from the inside out with realistic examples means you will understand TDD quickly and deeply. Hopefully this course will make you excited about what TDD can do for you. Includes: JUnit 4.12 Mockito 2 Spring Testing Parameterized tests Various other JUnit runners Written by the author of The Coding Craftsman WordPress blog. Who this course is for: Java developer looking to become an expert in Test Driven Development and the JUnit ecosystem. Show more Show less Featured review Paul Yorde 103 courses 23 reviews Rating: 5.0 out of 5 2 years ago Having been studying and professionally working with JUnit for several years now, this is the most comprehensive, exhaustive, and built up course I've seen. It has finally taught me how to easily apply TDD to building succinctly written code. Thank you!!! Show more Show less Instructor Ashley Frieze Software Engineer and mentor with over 15 years of TDD experience 4.6 Instructor Rating 407 Reviews 3,386 Students 1 Course Ashley is a hands on Software Engineering Consultant, Technical Author and Mentor. As a TDD enthusiast, he has contributed to Open Source TDD projects, including Spectrum BDD and a minor contribution to Mockito to aid its use with Java 8. As well as running his own software development consultancy, Ashley works for Baeldung as a Technical Editor, and has produced training content for Packt. He is a passionate and energetic evangelist of Agile, TDD and Clean Coding and wants everyone to be able to deliver beautiful code that keeps working. He writes extensively about this in his CodingCraftsman Wordpress blog. In his spare time he is also a stand-up comedian, though tends to keep quiet about unit tests while on stage! Show more Show less Udemy Business Teach on Udemy Get the app About us Contact us Careers Blog Help and Support Affiliate Impressum Kontakt Terms Privacy policy Cookie settings Sitemap © 2021 Udemy, Inc. window.handleCSSToggleButtonClick = function (event) { var target = event.currentTarget; var cssToggleId = target && target.dataset && target.dataset.cssToggleId; var input = cssToggleId && document.getElementById(cssToggleId); if (input) { if (input.dataset.type === 'checkbox') { input.dataset.checked = input.dataset.checked ? '' : 'checked'; } else { input.dataset.checked = input.dataset.allowToggle && input.dataset.checked ? '' : 'checked'; var radios = document.querySelectorAll('[name="' + input.dataset.name + '"]'); for (var i = 0; i (function(){window['__CF$cv$params']={r:'6777a6764a054251',m:'13158d8f2e46d471dfdb2c81b4811b36b1a519cd-1627743144-1800-Aandwxnk92pM/g8Hgljw4yuz984EgFN63VWehaxTIc3RHnjeyhJFUT7HLJaJbocvusQ1Dyd6phz1g5YOjVhgeg27DNThoW0FLiv5Ly8uxY9zfHBdFRk2hU6B83mGH87/N+2bljLGbSDBScyV5yRZ6wJXYzMKCGdUnYIvJZRTUZi7Bx0l1ZxUWn2f4DillqExSQ==',s:[0x54e2cc1da6,0x3f8860bbcc],}})();