Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ AWS Certified Developer - Associate
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Personal Development Mindfulness Meditation Personal Transformation Life Purpose Coaching Neuroscience
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Big Data
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee

This course includes:

  • 4 hours on-demand video
  • 1 article
  • 12 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
IT & Software Other IT & Software JUnit

JUnit and Mockito Crash Course

Learn how to use JUnit and Mockito and Unit Test in easy steps.
Rating: 4.3 out of 54.3 (2,193 ratings)
9,994 students
Created by Bharath Thippireddy
Last updated 1/2021
English
English, Spanish [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • Learn what Unit Testing is
  • Understand the importance of Unit Testing
  • Learn the JUnit Framework and API
  • Learn what mocking is and why we should mock
  • Write tests using JUnit and Mockito
  • Learn What Test Coverage is and how to measure it
  • All in simple and easy steps
  • Spring Testing Quick Start
  • PowerMock Quick Start
  • Parameterized JUnit
Curated for the Udemy for Business collection

Requirements

  • Java Knowledge
  • Eclipse IDE Kepler(or Higher) For Java Developers

Description

Sample of the reviews:

Very good teacher, knows the material. Hands on exercises that are quick to write, but very useful to support the learning of the course content. I'll keep these tiny projects and I'll refer to it often when coding. I've learned a lot about JUnit testing and Mockito, but also about other tools useful in software unit testing: Ex: Spring, shortcuts in Eclipse. - Guy Audet

Very well explained, to the point, on short interval to grasp the content. Every lecture has purpose achieved. Simple examples. Really nice course. - Kaushal Trivedi

I enjoyed the course. The Course is well structured, principles were clearly explained, the sound and picture quality was good. I recommend the course to everyone who would like to begin with java unit testing. Thanks, Bharath! - Mario Banay

---

Are you a java developer who want to become an expert at Unit Testing ? Then this course is a quick practical guide for you. Learn how to write real unit tests using JUnit and Mockito. This course will simplify things with concepts and step by step implementations .

There are so many java professionals who write great code , but not unit tests. This course aims at filling that gap by covering JUnit and Mockito the two required frameworks to write good unit tests.

Learn and master the most popular unit testing technologies in this comprehensive course.

  • Understand the importance of writing Unit Tests

  • Learn the Syntax of JUnit 4 and 5

  • Demystify the topics of Mocking

  • Write Unit tests using JUnit and Mockito

  • Learn what test coverage is and how to measure it

  • Run unit tests as a part of your Maven build

  • All in easy steps

Mastering Unit Testing for Java Professionals:

JUnit is a open source Framework to test and assert code behavior . Mockito mocks out the dependencies and stub the expectations allowing testing a particular layer/unit in isolation.

Any java developer at any level can access the key lessons and concepts in this course and learn to write quality unit tests.

This course is perfect for every java developer who works on building high quality applications .

Contents and Overview:

In over 2 hours of lectures this course covers necessary JUnit API and its usage with Mockito.

This course covers the importance of unit testing , how to effectively use JUnit ,how mocking works and how to use Mockito to write real unit tests.

Up on completion you will be able to test Java and JavaEE applications ,run unit tests as a part of your build and measure code coverage and improve it.

Who this course is for:

  • Anyone who wants to write quality code
  • Student with java background
  • Java Developers
  • Java EE Developers

Course content

15 sections • 86 lectures • 4h 14m total length

  • Installing Java SDK and Eclipse IDE
    Preview03:18
  • Download the completed projects
    00:46

  • Preview01:46
  • Unit Testing Introduction
    04:06
  • Unit Testing Introduction
    4 questions

  • Preview00:24
  • JUnit Introduction
    05:05
  • JUnit Introductioin
    5 questions
  • Hello JUnit
    06:48
  • Hello JUnit
    1 question
  • Testing for Exceptions
    05:20
  • Exceptions
    1 question
  • @Before and @After
    04:18
  • Before and After
    1 question

  • Introduction
    02:16
  • Maven Introduction
    03:16
  • Create the project
    06:36
  • Fix the annotations
    03:00
  • Assert Exceptions
    01:49
  • Run Tests
    03:01
  • Run Tests using Maven
    01:27
  • Rest of the course
    01:02

  • Preview00:22
  • Mocking Introduction
    04:02
  • Mocking Introduction
    2 questions
  • The Order Processor Usecase
    01:25
  • Create the DAO Layer
    04:45
  • Create the BO Layer
    07:55
  • Add the Mockito Dependency
    02:33
  • Stubbing and Setting Expectations
    06:03
  • Stubbing and setting expectations
    4 questions
  • Verify the results
    03:17
  • Verify the results
    1 question
  • Test a negative scenario
    02:50
  • Mocking Exceptions
    02:29
  • Test Cancel Order
    03:19
  • Cancel Order Negative Scenario
    01:13
  • Cancel Order Exception Scenario
    01:52
  • Cancel Order Exception On Update
    01:46

  • Introduction
    03:41
  • Update Usecase
    01:45
  • Add Dependencies
    01:48
  • Setup Mocks
    02:53
  • Test Positive Scenarios
    02:11
  • Test Negative Scenarios
    02:33

  • Preview00:19
  • Test Coverage
    02:40
  • Test Coverage
    2 questions
  • EclEmma Installation
    01:43
  • Measuring coverage using Emma
    03:11
  • Improving the Coverage
    03:26

  • Preview00:16
  • Verification Mode
    02:15
  • Verify More
    02:53
  • Create the ScrapBook Project
    04:08
  • Add the Mockito Dependency
    01:21
  • Stub Void Methods Implicitly
    04:52
  • Stub Void Methods Explicitly
    00:45
  • Use doNothing to test Consecutive calls
    02:47

  • The F.I.R.S.T Principle
    03:18
  • Test Doubles Introduction
    01:54
  • Test Doubles In Mockito
    03:04
  • Partial Mocking Using Mockito Spy
    06:17
  • Spy vs Mock
    02:13

  • Maven Overview
    04:00
  • Creating a Maven Project
    04:03
  • Running Tests
    04:48

Instructor

Bharath Thippireddy
IT Architect and Best Selling Instructor- 350000+ students
Bharath Thippireddy
  • 4.4 Instructor Rating
  • 53,197 Reviews
  • 394,423 Students
  • 30 Courses

Bharath Thippireddy is an Entrepreneur,Software Architect and Public Speaker who has trained 350000 + students across the planet.He is Oracle Certified Developer, Web Component Developer, Business Component Developer, Web Services Developer.

He loves learning new things both in technology and personal development and shares them on YouTube and his web site. He have mentored students in class room trainings as well as in the corporate world both in India as well as in USA.He has spoken on technical topics at several agile conferences. While in India he also voluntarily teaches interview and soft skills at Vivekananda Kendra.

Full Stack Development using Java,Python,JavaScript and DevOps, AWS, Docker, Kubernetes.

From 25 Courses which currently have 300K+ Learners you can pick a track and master

Spring Boot Project Development using Angular and React

Angular and React project creation with Java or Node backend

Complete Python Stack from core Python to Django REST Framework

Docker , Kubernetes, Maven, Jenkins ,GIT , AWS EC2 ,Elastic Beanstalk,ELB,Auto Scaling and more in easy steps

Java (Java Design Patterns,Java Web Services,Java Messaging Service)

And Spring Frameworks ( Spring, Spring Boot,Spring Data using Hibernate,Spring Data REST)

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.