Course info
Jan 22, 2020
1h 53m

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.

About the author
About the author

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.

More from the author
Getting Started with Mockito
1h 24m
Aug 2, 2019
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
[Autogenerated] Hi. My name is Nikolai. Capital Risk. Oh, and I'd like to welcome you to my intermediary level course. Getting started with Easy mark. I'm a freelance, full stock developer, and I've been writing mission Critical code in a variety of industries. During this time, I've used unit testing to drive the design of systems and to ensure that they work correctly. Writing unit test is challenging because the dependencies between obligation classes make it difficult to separate the unit you're trying to test from the rest of the system. This is where mocking comes in. The goal of this course is to teach you how to use mocking too easily. Isolate the thing you're trying to test from the rest of the code base. You'll do so by using easy, more leading Java marking framework. Some of the major topics that we will cover includes test doubles and marking best practices, creating configuring and verifying marks, using partial marks and resolving situations where testing is difficult, such as testing code that deals with time or testing code that you can't change. We will be writing tests for a realistic project in order to demonstrate all important concepts by the end of this course, you'll have the easy mark skills needed to easily test any job application. Before beginning this course, I recommend becoming familiar with writing object oriented Java code and with testing with Jae Eun, it's fine. I hope you'll join me on this journey to learn how to easily right. Great unit test with getting started with easy marks plural side.