Getting Started with Mockito
Offered By: Pluralsight
Course Description
Overview
Writing unit tests is difficult if the dependencies between your application classes
make it difficult to draw a boundary between what you want to test and the rest of the codebase. Mockito helps you to easily create Java tests by using mock objects.
Writing unit tests is difficult if the dependencies between your application classes make it difficult to draw a boundary between what you want to test and the rest of the codebase. In this course, Getting Started with Mockito, you will gain the ability to focus on the thing you’re trying to test without having to worry about the rest of the codebase. First, you will learn how to use mock objects instead of real dependencies. Next, you will discover how to configure mocked methods, including return values and exception throwing. Finally, you will explore the concept of partial mocks and how to use them to test tricky situations. When you are finished with this course, you will have the skills and knowledge of mocking with Mockito needed to test your Java applications by creating, configuring, and using mocks in your unit tests.
make it difficult to draw a boundary between what you want to test and the rest of the codebase. Mockito helps you to easily create Java tests by using mock objects.
Writing unit tests is difficult if the dependencies between your application classes make it difficult to draw a boundary between what you want to test and the rest of the codebase. In this course, Getting Started with Mockito, you will gain the ability to focus on the thing you’re trying to test without having to worry about the rest of the codebase. First, you will learn how to use mock objects instead of real dependencies. Next, you will discover how to configure mocked methods, including return values and exception throwing. Finally, you will explore the concept of partial mocks and how to use them to test tricky situations. When you are finished with this course, you will have the skills and knowledge of mocking with Mockito needed to test your Java applications by creating, configuring, and using mocks in your unit tests.
Syllabus
- Course Overview 1min
- Introduction to Mockito 20mins
- Configuring Return Values of Mocked Methods 19mins
- Verifying That Mocked Methods Behave Accordingly 15mins
- Advanced Mocking Techniques 20mins
- Behavior-driven Development (BDD) 6mins
Taught by
Nicolae Caprarescu
Related Courses
Professional Android App DevelopmentGalileo University via edX Effective Android Testing for Mobile Developers
LinkedIn Learning Practical Test-Driven Development for Java Programmers
LinkedIn Learning Android Unit Testing with JUnit and Mockito Using Kotlin
Pluralsight Testing in Android Course (How To)
Treehouse