Java integration tests (using Spring security as an example)

Опубликовано: 11 Февраль 2026
на канале: JavaRangers
1,720
89

👋 Welcome to the world of Java!

In this video, we will analyze how integration tests work in Java using Spring Security as an example. You will learn about the pros and cons of integration tests, as well as the difference between integration tests and unit tests.

📌 Our telegram channel: https://t.me/+lyuvPZI_ZthkZmU6
📌 Boost link: https://boosty.to/javarangers
📌 Donate link: https://boosty.to/javarangers/donate
📌 Follow us on social media:
TikTok:   / javarangersteam  
Instagram:   / javarangers  

LinkedIn (Mikhail Egorov): linkedin.com/in/maegorov
LinkedIn (Oleksii Chilibiiskyi): linkedin.com/in/oleksii-chilibiiskyi
LinkedIn (Viktor Bulatov): linkedin.com/in/viktor-bulatov-46a54b30b

🚀 *Don't miss it!*
🎙 LIVE PODCAST *"How to master Java and start coding in 2 weeks"* is coming soon!

📅 *Date:* February 2
⏰ *Time:* 21:00 (MSK) || 19:00 (MID EUR)
📍 *Where:* YouTube channel *JavaRangers*

This is your chance to learn how to easily start learning and enjoy programming. We will go over the key steps, give practical advice and answer your questions live!

🔔 *Subscribe to the @JavaRangers channel and turn on notifications so you don't miss anything!*

📌 Useful links and resources:
🔹Repository link: https://github.com/Lightoton/demoYouTube

👍 If you found the video useful, like it and leave a comment. We'd love to hear your thoughts!

Timecodes:
0:00 Greeting
0:04 Intro
0:14 Theory
1:37 Test setup
1:46 in memory database h2
2:49 Populating the test database
3:44 Script for cleaning the database
4:05 Tests for AuthController
7:53 Failed test run
8:07 Error found!!!
8:14 Successful test launch
8:18 Minor code adjustments
8:58 Continuation of tests for AuthController
11:23 Integration testing feature
12:04 Tests for UserController
17:32 Launching all tests!!!
18:09 Conclusion!
18:58 The end