Learn Java Unit Test: Mockito & Powermock Complete Tutorial

JUnit 5 with Mockito and JUnit 5 with Powermock absolutly tutorial on JUnit 5 framework Java 16 and JoCoCo maven plugin
4.63 (80 reviews)
Udemy
platform
English
language
Software Testing
category
instructor
Learn Java Unit Test: Mockito & Powermock Complete Tutorial
459
students
6 hours
content
Oct 2021
last update
$64.99
regular price

Why take this course?

🎉 Master JUnit 5 with Mockito and Powermock for Java Unit Testing! 🎓

Course Title: Learn Java Unit Test: Mockito & Powermock Complete Tutorial

Headline: Absolute Beginner to Confident Expert: A Comprehensive, Step-by-Step Tutorial on JUnit 5 Framework with Java 16 and JCoCo Coverage Monitoring!


🚀 Course Overview: Get ready to dive deep into the world of unit testing in Java! This course is designed for developers who are new to unit testing or looking to enhance their skills using the latest versions of Mockito (3.x) and Powermock. We'll cover everything you need to know to write effective unit tests with JUnit 5, ensuring your code is reliable, maintainable, and robust.


Course Agenda:

  1. Understanding Mocking:

    • F.I.R.S.T Principles 🏗️
      • Fast
      • Isolated
      • Repeatable
      • Self-validating
      • Timely
    • What is Mocking? 🤔
    • Simulating a User Login Application 🔄
    • Unit Testing the User Login Function with Mockito ✅
  2. Mockito Details Tutorial:

    • How to Mock Objects 🎭
    • Deep Mock 📖
    • Mock Object Stubbing Statements:
      • when...thenReturn ⬅️✅
      • doReturn...when ⬇️✅
      • doNothing...when ⏫✅
      • when...thenThrow ❗️✅
      • doThrow...When 🚨✅
      • when...thenAnswer 🤔✅
      • doAnswer...when 📝✅
      • when...thenCallRealMethod ⬅️🔄✅
    • Stubbing with Multiple Return Values 🔄
    • Stubbing with Cascading Code Style 👷‍♂️
    • Spying on Objects 🕵️‍♂️
    • Mockito Argument Matchers 🎯
    • Verifying Method Invocations 🔍
    • Verify with VerificationMode 📝
    • Mockito Verify Interactions 🗣️
    • Using @Captor for Easy Mocking 🛠️
    • @InjectMocks for Injecting Mocked Objects ⏫
  3. Mockito Inline Module:

    • Embracing BDD with Mockito 📖
    • Mocking Static Methods 🆘
    • Mocking Final Classes and Methods 💀
  4. Powermock Details Tutorial:

    • What is Powermock? 🤔
    • Why Need Powermock? 🙇‍♂️
    • Mocking Local Variables 📚
    • Mocking Static Methods 🆕
    • Mocking Final Classes and Methods 🔥
    • Powermock Spying 🔎
  5. JoCoCo:

    • On-the-fly Instrumentation for Coverage Reports 🛣️
    • Offline Instrumentation for Coverage Reports 📚

Why Take This Course?

  • Latest Techniques: Learn with up-to-date content based on Java 16 and the latest Mockito and Powermock versions.
  • Hands-On Learning: Apply concepts through practical examples and real-world scenarios.
  • Expert Guidance: Benefit from the expertise of experienced instructors who specialize in unit testing with JUnit 5.
  • Comprehensive Coverage: From the basics to advanced topics, this course has you covered.
  • Versatility: Master both Mockito and Powermock for a powerful combination in your testing toolkit.
  • Integration with JCoCo: Understand how to leverage JCoCo for effective code coverage analysis.

Whether you're a beginner or looking to expand your unit testing skills, this course will equip you with the knowledge and techniques needed to confidently write and maintain high-quality Java applications. Enroll now and take the first step towards becoming a unit testing virtuoso! 🎸🎓✨

Loading charts...

Related Topics

4341536
udemy ID
09/10/2021
course created date
16/11/2021
course indexed date
Bot
course submited by