Getting started with jMock

Learn to use jMock in day to day testing
1.0 (1 rating)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
434 students enrolled
Take This Course
  • Lectures 8
  • Length 35 mins
  • Skill Level Beginner Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 3/2016 English

Course Description

In this course you will learn about jMock, a mocking test framework. Mocking test frameworks are fairly common standard across all software companies as it allows you to simulate all dependencies without making network calls and even when dependencies are not ready. The focus is on testing the code you have written as fast as possible and with all possible permutations and combinations. Show you boss that you mean business when you write powerful and robust tests to defend your code and catch bugs before customer sees them.  

Here are objectives of this course

  • What is iMock?
  • Why do we need to use mock?
  • What is dependency injection or Invetsion of Control (IOC)
  • Learn how to set up jMock.
  • Live example of wrting jMock tests
  • Advanced features

At the end of this course a student will be able kickstart writing jMock tests immediately and prove to his peer about new robust and efficient way of writing unit tests.

What are the requirements?

  • Download jMock, but don't install it. I'll show you how to install during course.
  • You should be familiar with Java

What am I going to get from this course?

  • Choose right test framework
  • Learn about writing efficient and robust test

Who is the target audience?

  • All Java Developers
  • All QA engineers who write automated test

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Introduction

Understand what is Mock and why do we need to use it.

Understanding need for jMock
Section 2: Unit Testing
Typical Unit Testing
Section 3: jMock to the rescue
Achieve Loose Coupling
Writing First jUnit Tests
Section 4: Test validations
Expectations and Assertions
Advanced Features
Thank you

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Ravindra Sadaphule, Passionate programmer

I have 20 years of programming experience in writing world class applications like bing, MSN, expedia. I was full stack developer in fortune 100 companies. I currently work in bay area. I have worked on java, aws, c#, oracle, sql, azure, sharepoint. I thrive on challenging work and love to solve problems.

Ready to start learning?
Take This Course