Тёмный
No video :(

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

Devoxx
Подписаться 157 тыс.
Просмотров 4,8 тыс.
50% 1

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.

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@KessirAdjaho
@KessirAdjaho 6 месяцев назад
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.
@JavaWedsPython
@JavaWedsPython 6 месяцев назад
Thanks for sharing!
@aelfric5578
@aelfric5578 2 месяца назад
Do you mean when you use @MockBean together with the full @SpringBootTest or can this cause issues even when using a smaller context (e.g. specifying the classes argument on the SpringBootTest annotation like in the sides)?
@jesper7605
@jesper7605 6 месяцев назад
Easy to understand and covered several useful concepts. Good job!
@metaltoad8462
@metaltoad8462 6 месяцев назад
finally, someone said read the manual or official documentation
@ShivamNagpal
@ShivamNagpal 6 месяцев назад
Awesome Talk!!
@jackofnotrades15
@jackofnotrades15 6 месяцев назад
Great talk
Далее
Know your Java? by Venkat Subramaniam
37:41
Просмотров 16 тыс.
Testing Legacy Code Elliotte by Rusty Harold
1:00:49
Просмотров 19 тыс.
Thoughts About Unit Testing | Prime Reacts
11:21
Просмотров 219 тыс.
Spring Boot ❤️ Testcontainers by Iván López
45:18
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Unit Tests and Test Doubles like Mocks, Stubs & Fakes
17:32
Bootiful Spring Boot 3 x by Josh Long
44:32
Просмотров 29 тыс.