وب سایت تخصصی شرکت فرین
دسته بندی دوره ها

Testing Java with JUnit 5 & Mockito

سرفصل های دوره

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


1. Introduction
  • 1. Introduction
  • 2. What is a Unit Test
  • 3. Why write Unit Test
  • 4. The F.I.R.S.T Principle
  • 5. Testing Code in Isolation
  • 6. Testing Pyramid
  • 7. Quiz. Basics of Unit Testing.html
  • 8. What is JUnit 5
  • 9. JUnit and Build Tools

  • 2. Add JUnit 5 to Maven project
  • 1. Create new Maven project using IntelliJ IDEA
  • 2. Add JUnit Dependencies
  • 3. Maven Surefire Plugin

  • 3. Add JUnit 5 to Gradle project
  • 1. Creating a new project
  • 2. Add JUnit Dependencies
  • 3. Executing Unit Test

  • 4. Add JUnit 5 to a basic Java project
  • 1. Introduction
  • 2. Basic Java project with IntelliJ
  • 3. Basic Java project with Eclipse

  • 5. Basics of JUnit 5
  • 1. Introduction.html
  • 2. Creating First Unit Test method
  • 3. Assertions and Assertion message
  • 4. Other assertions
  • 5.1 calculatortest.zip
  • 5. JUnit Test Exercise.html
  • 6. Exercise solution overview
  • 7. Lazy Assert Messages
  • 8. Naming Unit Tests
  • 9. @DisplayName annotation
  • 10. Test Method Code Structure. Arrange, Act, Assert.
  • 11. JUnit Test Lifecycle
  • 12. Lifecycle methods demo
  • 13. Quiz - JUnit Test Lifecycle.html
  • 14. Disable Unit Test
  • 15. Assert an Exception

  • 6. Advanced JUnit 5
  • 1. @ParameterizedTest. Multiple Parameters with @MethodSource.
  • 2. @ParameterizedTest. Multiple parameters with @CsvSource.
  • 3. @ParameterizedTest + CSV file
  • 4. @ParameterizedTest + @ValueSource annotation.
  • 5. Repeated Tests
  • 6. Methods Order - Random order
  • 7. Methods Order - Order by name
  • 8. Methods Order - Random by order index
  • 9. Order of Unit Test Classes
  • 10. Quiz.html
  • 11. Test Instance Lifecycle - Introduction
  • 12. Changing Test Instance Lifecycle - example 1
  • 13.1 TestLifeCyclePerClassDemo.zip
  • 13. Test Instance Lifecycle Demo project overview
  • 14. Test Instance Lifecycle Demo Project Implementation
  • 15. Quiz.html

  • 7. Test Driven Development (TDD)
  • 1. Introduction
  • 2.1 UserService.zip
  • 2. New project, Class, Method
  • 3. Creating UserService
  • 4. Test Create User method
  • 5. Test User object contains first name
  • 6. Refactor Test method
  • 7. Exercise
  • 8.1 UserService.zip
  • 8. Solution overview
  • 9. Check if user id is set
  • 10. Assert throws Exception
  • 11.1 UserService-empty-last-name-exercise-solution.zip
  • 11. Exercise

  • 8. Mockito
  • 1. Introduction
  • 2. Adding Mocking to a project
  • 3. Method under test overview
  • 4. Implementing UsersRepository
  • 5. Injecting UsersRepository as Dependency
  • 6. Creating a Mock object
  • 7. Stubbing using built-in any() argument matcher
  • 8. Verify method call
  • 9. Exception stubbing
  • 10. Creating EmailNotificationService class
  • 11. Stub void method with Exception
  • 12. Do nothing when method is called
  • 13. Call real method

  • 9. Code Coverage
  • 1. Introduction
  • 2. Generating code coverage report
  • 3. Export Code Coverage Report
  • 4. Export Test Report using Maven
  • 5. Jacoco - Maven Plugin for Code Coverage
  • 6. Jacoco - Export Code Coverage Report in HTML format

  • 10. Spring Boot (Part 1) - Testing REST Controllers
  • 1. Introduction to Unit Testing Spring Boot Application
  • 2. Introduction to Integration Testing of Web Layer
  • 3. Introduction to Integration Testing of Web Layer
  • 4. Adding Testing Support to Spring Boot Application
  • 5.1 UsersServiceSpringBoot.zip
  • 5. Existing Project overview + Source code
  • 6. New Test Class. @WebMvcTest & @AutoConfigureMockMvc.
  • 7. RequestBuilder - Building and Performing HTTP Request
  • 8. @MockBean - Mocking Service Layer
  • 9. @MockBean annotation - Trying how it works.
  • 10. Assert for BAD REQUEST
  • 11. Practice exercise.html
  • 12.1 userscontrollerweblayertest.zip
  • 12. Practice exercise solution overview

  • 11. Spring Boot (Part 2) - All Layers
  • 1. Introduction
  • 2. @SpringBootTest annotation
  • 3. @SpringBootTest WebEnvironment MOCK
  • 4. Defined Port Number
  • 5. @TestPropertySource. Loading alternative configuration.
  • 6. Random Port Number
  • 7. Test Create User - User Details JSON
  • 8. TestRestTemplate - Prepare & Perform HTTP Post Request
  • 9. Trying how it works
  • 10. Test JWT is Required
  • 11. Test User Login Works
  • 12. Order Test Methods
  • 13. GET users. Include JWT Token in the Request
  • 14.1 UsersServiceSpringBoot.zip
  • 14. Source code.html
  • 15. More lessons are about to be uploaded.html
  • 16. Bonus.html
  • 139,000 تومان
    بیش از یک محصول به صورت دانلودی میخواهید؟ محصول را به سبد خرید اضافه کنید.
    افزودن به سبد خرید
    خرید دانلودی فوری

    در این روش نیاز به افزودن محصول به سبد خرید و تکمیل اطلاعات نیست و شما پس از وارد کردن ایمیل خود و طی کردن مراحل پرداخت لینک های دریافت محصولات را در ایمیل خود دریافت خواهید کرد.

    ایمیل شما:
    تولید کننده:
    شناسه: 8885
    حجم: 2870 مگابایت
    مدت زمان: 411 دقیقه
    تاریخ انتشار: ۱۰ فروردین ۱۴۰۲
    دیگر آموزش های این مدرس
    طراحی سایت و خدمات سئو

    139,000 تومان
    افزودن به سبد خرید