Tips, tricks and gotchas when writing unit tests with Mockito by Jesse Kershaw

  Рет қаралды 4,185

Devoxx

Devoxx

4 ай бұрын

Mockito is synonymous with Unit Testing in Java and yet people often misuse features and write tests that are brittle and difficult to maintain. This talk aims to go over the common features of the mockito mocking library, common anti-patterns and better alternatives so that your tests are more understandable and easier to maintain. From how to create mocks and mock behaviour to how to inject mock beans in to a spring boot integration test context.

Пікірлер: 6
@KessirAdjaho
@KessirAdjaho
It's always important to mention the potential downsides of @MockBean. Its abuse can considerably slow down your integration tests and increase memory usage. Anytime you use @MockBean, you may be creating an additional spring context, which are expensive.
@jesper7605
@jesper7605
Easy to understand and covered several useful concepts. Good job!
@metaltoad8462
@metaltoad8462
finally, someone said read the manual or official documentation
@ShivamNagpal
@ShivamNagpal
Awesome Talk!!
@jackofnotrades15
@jackofnotrades15
Great talk
Spring Boot ❤️ Testcontainers by Iván López
45:18
Devoxx
Рет қаралды 4,4 М.
Data Oriented Programming in Java 21 by Nicolai Parlog
48:28
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 2,8 МЛН
Hot Ball ASMR #asmr #asmrsounds #satisfying #relaxing #satisfyingvideo
00:19
Oddly Satisfying
Рет қаралды 28 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 90 МЛН
Effective Unit Testing by Eliotte Rusty Harold
48:10
Devoxx
Рет қаралды 101 М.
Demystifying DNS  - Ross Jourdain
23:21
Wellrailed Meetup
Рет қаралды 608
Design Patterns Revisited in Modern Java by Venkat Subramaniam
51:30
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 981 М.
Teaching old Streams new tricks  By Viktor Klang
50:51
Devoxx
Рет қаралды 19 М.
Bootiful Spring Boot 3 x by Josh Long
44:32
Devoxx
Рет қаралды 27 М.
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 2,8 МЛН