Course information

Mockito Course Outline

Module 1: Introduction to Mockito

  • What is Mocking?
  • Mockito
  • Benefits of Mockito
  • Steps to Install Mockito
  • Create an Application

Module 2: Mockito Methods

  • mock()
  • when()
  • verify()
  • spy()
  • reset()
  • verifyNoMoreInteractions()
  • verifyZeroInteractions()
  • doThrow()
  • doCallRealMethod()
  • doAnswer()
  • doNothing()
  • inOrder()
  • times()
  • never()
  • calls()

Module 3: Argument Matchers

  • Introduction
  • Methods
  • Throwing an Exception Using Argument Matcher
  • ArgumentCaptor

Module 4: Mockito BDD

  • Behaviour-Driven Development (BDD)
  • Methods of the BDDMockito Class
  • BDD Style Test

Module 5: Hamcrest Matchers

  • What is Hamcrest?
  • Methods of the Matchers
  • Create a Basic Hamcrest

Module 6: Mockito Annotations

  • @Mock
  • @RunWith
  • @InjectMocks
  • @Captor
  • @Spy

Module 7: JUnit Integration

  • Steps to Integrate JUnit and Mockito
  • JUnit Rules

Module 8: Create Mock

  • Syntax
  • Steps to Create Mock
  • PowerMock
  • Mockito Vs EasyMock
  • Mock Vs Stub Vs Spy
  • Reset Mock

Module 9: Spying Abstract Classes

  • Abstract Classes
  • Maven Dependencies
  • Spying Syntax

Show moredowndown

Who should attend this Mockito Course?

This Mockito Training Course is recommended for individuals who have a basic understanding of Java and unit testing principles. A few of the professionals who will benefit from this course are:

  • Software Testers
  • Java Developers
  • QA Engineers
  • DevOps Engineers
  • IT Managers
  • Software Architects
  • Quality Enthusiasts

Prerequisites of the Mockito Course

There are no formal prerequisites for the Mockito Training Course. However, a basic understanding of unit testing concepts, software development, and testing terminology can be beneficial for delegates.

Mockito Course Overview

The Mockito Course, offered by The Knowledge Academy, is a fundamental resource in the realm of software testing. This courseem powers delegates with vital skills and knowledge essential for proficiently utilising Mockito, a robust Java library designed for mocking and testing.

This training stands as a fast-track route to mastering Mockito and strengthening one's ability to ensure software reliability and quality, making delegates valuable contributors to their organisations' software testing efforts. Software developers, quality assurance engineers, and software testers should aim to master this subject.

This 1-day Mockito Course delivers a condensed yet comprehensive learning experience. Delegates will engage in practical exercises that offer hands-on exposure to Mockito, ensuring they can apply their knowledge immediately. This training equips delegates with the skills needed to write effective unit tests, mock dependencies, and enhance code reliability.

Course Objectives

  • To master the Mockito library for creating mock objects and stubbing behaviour
  • To develop effective unit tests for Java applications
  • To explore advanced Mockito features, such as spying and verification
  • To apply best practices for testing and mocking dependencies
  • To improve code coverage and code quality through comprehensive testing
  • To identify and resolve common testing challenges and issues

After successfully finishing the course, delegates will emerge with a deep understanding of Mockito's capabilities and the skills to integrate it seamlessly into their software development processes.

Show moredowndown

What’s included in this Mockito Course?

  • World-Class Training Sessions from Experienced Instructors
  • Mockito Certificate
  • Digital Delegate Pack

Why choose us

Our Hong Kong venue

Includes..

Free Wi-Fi

To make sure you’re always connected we offer completely free and easy to access wi-fi.

Air conditioned

To keep you comfortable during your course we offer a fully air conditioned environment.

Full IT support

IT support is on hand to sort out any unforseen issues that may arise.

Video equipment

This location has full video conferencing equipment.

Hong Kong is an autonomous territory of the People’s Republic of China and can be located on the southern coast of China. Hong Kong has a population of around 7 million people. The education system in Hong Kong is mostly based around the English system and it is overseen by the Education Bureau and the Social Welfare Department. One of the earliest schools in Hong Kong was Li Ying College established in 1075. The education level begins with preschool education that is payable education, paid by pupil’s parents. The primary and secondary education is mandatory for every child in Hong Kong to attend from the age of 6 to 18. Higher education remains exclusive in Hong Kong and adult education is a growing sector in Hong Kong, with two non-profit school running evening courses. The University of Hong Kong was founded in 1911 and is the oldest tertiary (higher education) institution in Hong Kong and is organised into 10 academic faculties with English as the main language of instruction. The Education Bureau in Hong Kong also provides educational services for immigrant children from mainland China and other countries. Hong Kong also has 175 internal schools.

Show moredown

Address

62/F & 66/F
The Center
99 Queens Road
Central
Hong Kong

T: +852 2592 5349

Ways to take this course

Experience live, interactive learning from home with The Knowledge Academy's Online Instructor-led Mockito Course in Hong Kong. Engage directly with expert instructors, mirroring the classroom schedule for a comprehensive learning journey. Enjoy the convenience of virtual learning without compromising on the quality of interaction.

Unlock your potential with The Knowledge Academy's Mockito Course in Hong Kong, accessible anytime, anywhere on any device. Enjoy 90 days of online course access, extendable upon request, and benefit from the support of our expert trainers. Elevate your skills at your own pace with our Online Self-paced sessions.

What our customers are saying

Mockito Course in Hong Kong FAQs

Mockito is a powerful Java framework for creating and using mock objects in automated testing. It allows developers to simulate the behavior of dependencies during testing, aiding in isolating and testing specific parts of their code.
This course is designed for Java developers using Mockito to test their applications. It’s suitable for beginners who want to grasp the basics of mocking in Java and for more experienced developers looking to refine their testing skills.
Throughout this course, you’ll learn the fundamentals of Mockito, including setting up mocks, stubbing methods, verifying interactions, handling exceptions, and integrating Mockito with testing frameworks like JUnit. You’ll also delve into best practices for effective and efficient testing.
A basic understanding of Java programming and familiarity with unit testing concepts would be beneficial. Prior knowledge of testing frameworks like JUnit would also be advantageous, although optional.
The course will provide examples and insights into applying Mockito in real-world scenarios. By understanding the concepts and best practices taught in the course, you can effectively integrate Mockito into your projects. To learn more about the Mockito Java framework, join our Mockito Courses.
Once your booking has been placed and confirmed, you will receive an email which contains your course location, course overview, pre-course reading material (if required), course agenda and payment receipts
The course might cover the suitability of Mockito for different types of testing, such as unit testing, integration testing, or system testing. Understanding when and where to apply Mockito effectively can be a crucial aspect covered in the curriculum.
Mockito Courses provide a deep understanding of the Java mocking framework, enabling effective test writing. They offer hands-on practice and cover advanced concepts for creating robust code. Ultimately, these courses streamline testing processes, leading to more efficient software development.
We can provide support via phone & email prior to attending, during and after the course.
In Mockito Training, delegates will have 1-day intensive training with our experienced instructors, a digital delegate pack consisting of important notes related to this course, and a certificate after course completion.
The Mockito Training is a 1-day training during which delegates participate in intensive learning sessions that cover various course topics.
The training fees for Mockito Coursein Hong Kong starts from HKD8995
The Knowledge Academy is the Leading global training provider for Mockito Course.
Show more down

Why choose us

icon

Best price in the industry

You won't find better value in the marketplace. If you do find a lower price, we will beat it.

icon

Trusted & Approved

We are accredited by BCS

icon

Many delivery methods

Flexible delivery methods are available depending on your learning style.

icon

High quality resources

Resources are included for a comprehensive learning experience.

barclays Logo
deloitte Logo
Thames Water Logo

"Really good course and well organised. Trainer was great with a sense of humour - his experience allowed a free flowing course, structured to help you gain as much information & relevant experience whilst helping prepare you for the exam"

Joshua Davies, Thames Water

santander logo
bmw Logo
Google Logo
backBack to course information

Get a custom course package

We may not have any package deals available including this course. If you enquire or give us a call on +852 2592 5349 and speak to our training experts, we should be able to help you with your requirements.

cross

BIGGEST
BLACK FRIDAY SALE!

red-starWHO WILL BE FUNDING THE COURSE?

close

close

Thank you for your enquiry!

One of our training experts will be in touch shortly to go over your training requirements.

close

close

Press esc to close

close close

Back to course information

Thank you for your enquiry!

One of our training experts will be in touch shortly to go overy your training requirements.

close close

Thank you for your enquiry!

One of our training experts will be in touch shortly to go over your training requirements.