Getting Started with EasyMock
Offered By: Pluralsight
Course Description
Overview
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.
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.
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.
Syllabus
- Course Overview 1min
- Getting Started with EasyMock 28mins
- Configuring Behavior of Mocks 36mins
- Verifying What Methods Are Called Using EasyMock 21mins
- Advanced Topics 25mins
Taught by
Nicolae Caprarescu
Related Courses
Automated Visual Software AnalyticsopenHPI JavaScript Testing
Udacity Desarrollo de Aplicaciones Web: Prueba y Despliegue
University of New Mexico via Coursera 软件工程
Peking University via Coursera Building R Packages
Johns Hopkins University via Coursera