RUVIDEO
Поделитесь видео 🙏

JAVA Programmieren - CheckIt professional Teil 08

📁 Разное 👁️ 21 📅 05.12.2023

Mockito is an add-on for JUnit that helps developers to isolate their testcase in an elegant way. Here I try to introduce Mockito with the intention to build up test cases without any necessity of the persistence layer.

1:09 add Mockito to maven dependencies of the project that will contain Mockito-enabled test cases
4:10 make Mockito class methods available throught static import
5:00 test case 1: Explain method createClient of class CheckItSystemImpl
7:28 test case 1: Mocking CheckItSystemImpl
8:14 test case 1: little information about Mockito internals
9:40 test case 1: reformulate overriden getName()-method in Mockito-way
11:48 test case 1: reformulate overriden validate()-method in Mockito-way
13:00 test case 1: reformulate overriden checkClientUniquenessByName()-method in Mockito-way
13:31 test case 1: reformulate overriden persist()-method in Mockito-way
15:01 test case 1: test execution with assertion error, explained
16:05 test case 1: inform Mockito to not stub createClient()-Method
17:53 test case 1: explanation of some Mockito internals
19:05 test case 1: a word to the new complexity
19:35 general: keep methods as smal as possible so the tests will be small
21:26 test case 2: explanation of ProposalCreateClient and test case improvement
22:26 test case 2: mock ProposalCreateClient
22:43 test case 2: configure validate()-method on ProposalCreateClient-Mock
24:26 test case 2: throwing exceptions during configuration
25:33 test case 2: test execution
26:15 test case 3: explanation of the test case
26:52 test case 3: mock ProposalCreateClient
27:14 test case 3: configure validate()-method of ProposalCreateClient, doThrow()...
28:12 test case 3: test execution
28:27 test case 4: mock ProposalCreateClient
29:09 test case 4: configure getName()-method of ProposalCreateClient
29:53 test case 4: test execution
30:04 test case 5: explanation
32:04 test case 5: mock CheckItSystemImpl
32:50 test case 5: configure existsClientByName()-method
34:07 test case 5: test execution with assertion error with explanation and correction
35:14 test case 5: test execution
35:22 test case 6: mock CheckItSystemImpl
35:52 test case 6: configure existsClientByName()-method
36:55 test case 6: test execution
37:09 test case 7: explanation
39:11 test case 7: mock CheckItSystemDao
39:54 test case 7: configure existsClientByName()-method on CheckItSystemDao
40:49 test case 7: test execution
40:57 test case 7: remove trash
41:26 Run all tests

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «JAVA Programmieren - CheckIt professional Teil 08», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.