Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

Getting Started with EasyMock 4

Dependencies between application classes make it difficult to write unit tests. EasyMock enables you to focus on the unit-under-test by using mocks. You’ll gain full control over the behavior of dependencies and enhance your unit testing skills.

Intermediate
1h 52m
(27)

Created by Nicolae Caprarescu

Last Updated Apr 19, 2022

Course Thumbnail
  • Course

Getting Started with EasyMock 4

Dependencies between application classes make it difficult to write unit tests. EasyMock enables you to focus on the unit-under-test by using mocks. You’ll gain full control over the behavior of dependencies and enhance your unit testing skills.

Intermediate
1h 52m
(27)

Created by Nicolae Caprarescu

Last Updated Apr 19, 2022

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

Writing unit tests is difficult because 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 EasyMock, you will gain the ability focus to on the thing you’re trying to test by using mocks. EasyMock will provide you with full control over the behavior of your unit-under-test’s dependencies. 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 a partial mock and how to use it to test challenging situations. When you’re finished with this course, you will have the skills and knowledge of mocking with EasyMock needed to write any Java unit tests.

Getting Started with EasyMock 4
Intermediate
1h 52m
(27)
Table of contents

About the author
Nicolae Caprarescu - Pluralsight course - Getting Started with EasyMock 4
Nicolae Caprarescu
9 courses 3.4 author rating 265 ratings

Nicolae has been a Software Engineer since 2013, focusing on Java and web stacks. Nicolae holds a degree in Computer Science and enjoys teaching, traveling and motorsports.

Get started with Pluralsight