Companies Home Search Profile

Testing Java with JUnit 5 & Mockito

Focused View

Sergey Kargopolov

6:50:34

217 View
  • 1. Introduction.mp4
    03:24
  • 2. What is a Unit Test.mp4
    08:19
  • 3. Why write Unit Test.mp4
    02:28
  • 4. The F.I.R.S.T Principle.mp4
    03:53
  • 5. Testing Code in Isolation.mp4
    04:32
  • 6. Testing Pyramid.mp4
    02:19
  • 7. Quiz. Basics of Unit Testing.html
  • 8. What is JUnit 5.mp4
    02:09
  • 9. JUnit and Build Tools.mp4
    01:02
  • 1. Create new Maven project using IntelliJ IDEA.mp4
    02:34
  • 2. Add JUnit Dependencies.mp4
    06:12
  • 3. Maven Surefire Plugin.mp4
    04:47
  • 1. Creating a new project.mp4
    02:41
  • 2. Add JUnit Dependencies.mp4
    05:07
  • 3. Executing Unit Test.mp4
    02:22
  • 1. Introduction.mp4
    00:40
  • 2. Basic Java project with IntelliJ.mp4
    06:32
  • 3. Basic Java project with Eclipse.mp4
    06:50
  • 1. Introduction.html
  • 2. Creating First Unit Test method.mp4
    04:54
  • 3. Assertions and Assertion message.mp4
    01:57
  • 4. Other assertions.mp4
    02:58
  • 5.1 calculatortest.zip
  • 5. JUnit Test Exercise.html
  • 6. Exercise solution overview.mp4
    03:26
  • 7. Lazy Assert Messages.mp4
    04:40
  • 8. Naming Unit Tests.mp4
    04:21
  • 9. @DisplayName annotation.mp4
    02:33
  • 10. Test Method Code Structure. Arrange, Act, Assert..mp4
    04:12
  • 11. JUnit Test Lifecycle.mp4
    03:36
  • 12. Lifecycle methods demo.mp4
    06:16
  • 13. Quiz - JUnit Test Lifecycle.html
  • 14. Disable Unit Test.mp4
    02:47
  • 15. Assert an Exception.mp4
    05:40
  • 1. @ParameterizedTest. Multiple Parameters with @MethodSource..mp4
    07:38
  • 2. @ParameterizedTest. Multiple parameters with @CsvSource..mp4
    04:22
  • 3. @ParameterizedTest + CSV file.mp4
    04:43
  • 4. @ParameterizedTest + @ValueSource annotation..mp4
    02:44
  • 5. Repeated Tests.mp4
    07:30
  • 6. Methods Order - Random order.mp4
    02:35
  • 7. Methods Order - Order by name.mp4
    01:54
  • 8. Methods Order - Random by order index.mp4
    03:47
  • 9. Order of Unit Test Classes.mp4
    08:18
  • 10. Quiz.html
  • 11. Test Instance Lifecycle - Introduction.mp4
    01:55
  • 12. Changing Test Instance Lifecycle - example 1.mp4
    04:56
  • 13.1 TestLifeCyclePerClassDemo.zip
  • 13. Test Instance Lifecycle Demo project overview.mp4
    05:02
  • 14. Test Instance Lifecycle Demo Project Implementation.mp4
    09:00
  • 15. Quiz.html
  • 1. Introduction.mp4
    03:04
  • 2.1 UserService.zip
  • 2. New project, Class, Method.mp4
    02:17
  • 3. Creating UserService.mp4
    03:34
  • 4. Test Create User method.mp4
    06:41
  • 5. Test User object contains first name.mp4
    04:14
  • 6. Refactor Test method.mp4
    02:15
  • 7. Exercise.mp4
    00:55
  • 8.1 UserService.zip
  • 8. Solution overview.mp4
    01:07
  • 9. Check if user id is set.mp4
    04:02
  • 10. Assert throws Exception.mp4
    07:52
  • 11.1 UserService-empty-last-name-exercise-solution.zip
  • 11. Exercise.mp4
    01:56
  • 1. Introduction.mp4
    03:31
  • 2. Adding Mocking to a project.mp4
    02:25
  • 3. Method under test overview.mp4
    01:33
  • 4. Implementing UsersRepository.mp4
    03:14
  • 5. Injecting UsersRepository as Dependency.mp4
    04:17
  • 6. Creating a Mock object.mp4
    02:42
  • 7. Stubbing using built-in any() argument matcher.mp4
    05:01
  • 8. Verify method call.mp4
    06:34
  • 9. Exception stubbing.mp4
    05:35
  • 10. Creating EmailNotificationService class.mp4
    03:47
  • 11. Stub void method with Exception.mp4
    05:20
  • 12. Do nothing when method is called.mp4
    01:58
  • 13. Call real method.mp4
    04:00
  • 1. Introduction.mp4
    03:52
  • 2. Generating code coverage report.mp4
    05:11
  • 3. Export Code Coverage Report.mp4
    02:39
  • 4. Export Test Report using Maven.mp4
    06:53
  • 5. Jacoco - Maven Plugin for Code Coverage.mp4
    03:03
  • 6. Jacoco - Export Code Coverage Report in HTML format.mp4
    03:55
  • 1. Introduction to Unit Testing Spring Boot Application.mp4
    03:28
  • 2. Introduction to Integration Testing of Web Layer.mp4
    02:09
  • 3. Introduction to Integration Testing of Web Layer.mp4
    01:47
  • 4. Adding Testing Support to Spring Boot Application.mp4
    04:54
  • 5.1 UsersServiceSpringBoot.zip
  • 5. Existing Project overview + Source code.mp4
    08:10
  • 6. New Test Class. @WebMvcTest & @AutoConfigureMockMvc..mp4
    05:23
  • 7. RequestBuilder - Building and Performing HTTP Request.mp4
    09:13
  • 8. @MockBean - Mocking Service Layer.mp4
    06:54
  • 9. @MockBean annotation - Trying how it works..mp4
    04:24
  • 10. Assert for BAD REQUEST.mp4
    07:34
  • 11. Practice exercise.html
  • 12.1 userscontrollerweblayertest.zip
  • 12. Practice exercise solution overview.mp4
    03:27
  • 1. Introduction.mp4
    00:59
  • 2. @SpringBootTest annotation.mp4
    02:02
  • 3. @SpringBootTest WebEnvironment MOCK.mp4
    01:37
  • 4. Defined Port Number.mp4
    03:42
  • 5. @TestPropertySource. Loading alternative configuration..mp4
    06:34
  • 6. Random Port Number.mp4
    03:08
  • 7. Test Create User - User Details JSON.mp4
    02:18
  • 8. TestRestTemplate - Prepare & Perform HTTP Post Request.mp4
    07:36
  • 9. Trying how it works.mp4
    02:50
  • 10. Test JWT is Required.mp4
    06:03
  • 11. Test User Login Works.mp4
    10:09
  • 12. Order Test Methods.mp4
    03:47
  • 13. GET users. Include JWT Token in the Request.mp4
    11:24
  • 14.1 UsersServiceSpringBoot.zip
  • 14. Source code.html
  • 15. More lessons are about to be uploaded.html
  • 16. Bonus.html
  • Description


    Unit Testing & Integration Testing of Java and Spring Boot applications. Test Driven Development(TDD) Explained.

    What You'll Learn?


    • JUnit 5 - basic & advanced topics
    • Test Web Layer and Controllers
    • Test Java code with Mockito - the most popular Mocking Framework.
    • Test Data layer and JPA Repositories
    • Write Spring Boot Integration Tests
    • Test Business layer and Service classes
    • Master Test Driven Development (TDD)
    • And more...

    Who is this for?


  • Java developers interested in learning how to test Java applications with JUnit 5
  • More details


    Description

    Unit Testing is a must-have skill and this video course is about unit testing.

    If you take this video course, you will learn how to test your Java code using JUnit 5 and Mockito framework.

    This video course is for beginners and you do not need to have any prior Unit testing knowledge to enrol in this course.


    JUnit 5 in Different Java projects

    There are different Java projects, build tools and development environments. In this course, you will learn how to create a new project and configure JUnit 5 support for different types of projects, using different development environments and build tools.

    You will learn how to create a Unit test in: 

    • IntelliJ IDEA and

    • Eclipse Development environments.

    You will learn how to create a Unit test in: 

    • Regular Java project,

    • Maven-based Java project,

    • Cradle-based Java project.


    Course Overview

    This video course teaches Unit and Integration testing with Java from the very beginning and covers many advanced topics as well. By the end of this course, you will learn:

    • JUnit 5 basics, and

    • JUnit 5 advanced topics.

    Once you become familiar with JUnit 5, you will learn to use:

    • Test-Driven Development(TDD)

    You will then learn to use another very popular Test framework for Java called: 

    • Mockito

    You will also learn how to write:

    • Spring Boot integration tests

    By the end of this course you will learn and be able to use all of the following: 


    • Create Unit Tests in IntelliJ,

    • Create Unit Tests in Eclipse,

    • Run unit tests using Gradle,

    • Run Unit Tests using Maven,

    • Use @DisplayName annotation,

    • Use JUnit assertions,

    • Test for Exceptions,

    • Use Lifecycle methods (@BeforeAll, @BeforeEach, @AfterEach, @AfterAll),

    • Run unit tests in any order you need: (Random, Order by Name, Order by Index),

    • Disable Unit test,

    • Repeated Tests with @RepeatedTest annotation,

    • Parameterized tests with @Parameterized annotation

      • @ValueSource,

      • @MethodSource,

      • @CsvSource,

      • @CsvFileSource

    • Change Test Instance lifecycle with @TestInstance (PER_CLASS, PER_METHOD)

    • Learn to Mock objects with Mockito's @Mock annotation,

    • Learn to user Mockito's argument matches,

    • Mockito method stubbing,

    • Mockito Exception stubbing,

    • Verify method call,

    • Call Real Method,

    • Do nothing when a method is called,

    • Write integration tests for Spring Boot applications,

    • and more...

    Who this course is for:

    • Java developers interested in learning how to test Java applications with JUnit 5

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Sergey Kargopolov
    Sergey Kargopolov
    Instructor's Courses
    I have more than 20 years of experience in building different types of software. I started my career as an Entrepreneur with award-winning web projects and currently, I’m a Full Stack Developer with a passion for teaching beginner programmers to reach their goals and assisting them in the development of their applications.Follow me on Twitter, LinkedIn or Instagram to stay in touch. Happy learning!
    Students take courses primarily to improve job-related skills.Some courses generate credit toward technical certification. Udemy has made a special effort to attract corporate trainers seeking to create coursework for employees of their company.
    • language english
    • Training sessions 96
    • duration 6:50:34
    • Release Date 2023/03/30