Introduction to Mockito | Mock vs Spy | thenReturn vs thenAnswer | Injecting Mocks | Geekific

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ค. 2024
  • Support us on Patreon: / geekific
    Discord Community: / discord
    GitHub Repository: github.com/geekific-official/
    Couple months back, we launched and continuously enriched our unit-tests and TDD series. Part of this series, was an introductory video on mocking ( • Mocks vs. Fakes vs. St... ), and how we can use mocks to improve and target specific units of our application while testing it. This video, marks the start of another series of videos in which we focus on the Mockito Library.
    Timestamps:
    00:00 Introduction
    00:10 What is Mockito?
    01:04 Mocks - Mocking with Mockito
    02:44 Spies - Mockito Spy
    03:49 Captors - Capturing Arguments with Mockito
    04:20 Injecting Mocks and Testing Services
    05:52 thenReturn vs thenAnswer vs thenThrow
    07:13 Thanks for Watching!
    If you found this video helpful, check other Geekific uploads:
    - Object-Oriented Programming Fundamentals: • What is Object-Oriente...
    - SOLID Principles and Best Practices: • SOLID Design Principle...
    - Recursion Made Simple, Recursive Methods: • What is Recursion? | R...
    - Use-Case and Sequence Diagrams: • UML Use-Case and Seque...
    - Project Lombok Annotations Explained: • Project Lombok Annotat...
    - Trees Compared and Visualized, BST vs AVL vs Red-Black vs Splay vs Heaps: • Trees Compared and Vis...
    - Generics and Wildcards in Java, Invariance vs Covariance vs Contravariance: • Generics and Wildcards...
    - Intro to JSON and Jackson's ObjectMapper, Parse JSON in Java, Convert Object to JSON, Jackson Library: • Intro to JSON and Jack...
    - Mocks vs. Fakes vs. Stubs, Mocking in Java, Mock Frameworks: • Mocks vs. Fakes vs. St...
    #Geekific #Mockito #UnitTesting #Java #JUnit

ความคิดเห็น • 5

  • @angelschmal
    @angelschmal 2 หลายเดือนก่อน

    This is just an amazing tutorial

  • @user-lu3hg2ml2v
    @user-lu3hg2ml2v ปีที่แล้ว +1

    Ty for new video. Keep it up! :)

  • @mariuspet89
    @mariuspet89 ปีที่แล้ว

    Very informative video! Thank you!

  • @TechOnScreen
    @TechOnScreen ปีที่แล้ว +1

    need more videos :)

    • @geekific
      @geekific  ปีที่แล้ว

      On the way! Stay Tuned :)