Software Testing Tutorial - Learn Unit Testing and Integration Testing

  Рет қаралды 572,095

Amigoscode

Amigoscode

Күн бұрын

Software testing tutorial is a must. Specifically Unit Testing and Integration testing using Java and JUnit5 testing framework
You will learn about Junit5, Integration Tests, Assertions and Mocking with Java Mockito
#softwaretesting #softwaretestingturorial #amigoscode
Download Diffblue to auto generate unit and integration tests
► www.diffblue.com/community-ed...
Clone repo: github.com/amigoscode/spring-...
🙊 Subscribe to Amigoscode - bit.ly/2HpF5V8
► Courses Available for free here - amigoscode.com/courses
► Join Private Facebook Group - / 456035171490753
► Join Discord - bit.ly/2wL029v
⭐ Table Of Contents ⭐
00:00 - Software Testing Overview
00:40 - Download Diffblue to auto-generate tests
01:44 - UML Diagram
05:16 - JUnit5 and AsserJ
10:06 - Maven Dependencies
12:54 - Lets Write a Test
21:14 - Testing Repositories
30:01 - H2 Database
35:21 - @DataJPATest
42:25 - Mockito
54:08 - Argument Captor
01:01:02 - Testing Add Student
01:12:12 - Integration Testing Overview
01:14:03 - Next Steps
🙊 Here are the goods for all my videos video:
► Recommended Books
Clean Code
- amzn.to/2UGDPlX
HTTP: The Definitive Guide
- amzn.to/2JDVi8s
Clean Architecture
- amzn.to/2xOBNXW
► Computer and Monitor
New Apple MacBook Pro
- amzn.to/3464Mmn
Dell 27 INCH Ultrasharp U2719D Monitor
- amzn.to/2xM3nW1
Double Arm Stand Desk Mount
- amzn.to/3aYKKfs
USB C Hub Multiport Adapter
- amzn.to/2Jz7NlL
► Camera Gear
Sony ILCE7M3B Full Frame Mirrorless Camera
- amzn.to/346QIJn
Sigma 16 mm F1.4 DC DN
- amzn.to/2wbic3Q
Sigma 33B965 30 mm F1.4 DC DC
- amzn.to/39G37Fd
Awesome Screen Saver
- github.com/JohnCoates/Aerial
IDE I use for coding
- Iterm
- VsCode
- GoLand
- IntelliJ
- Sublime
💯 You can also follow me here:
► Don't forget to subscribe | bit.ly/2HpF5V8
► Join Closed Facebook Group for discussion and early access videos and courses | bit.ly/2FbuIkx
► Follow me on Instagram | bit.ly/2TSkA9w
► Join Discord - bit.ly/2wL029v
❤️ Thanks for watching

Пікірлер: 391
@calkelpdiver
@calkelpdiver 3 жыл бұрын
Impressive! I'm a Tester who is working with Developers to improve their Unit Testing and code quality. I've been tasked to put together some training materials and I'm going to include this. The video hits on so many things, but makes them very clear and concise in definition and explanation. You show both the power & advantages of the tool(s) you use and for Unit Testing itself. So glad I found this.
@poojaandpawan6282
@poojaandpawan6282 2 жыл бұрын
I wish I had found this earlier !! I spent quite a lot of time figuring out different tutorials for JUnit 5 and I ended up not writing JUnits for my Repository interfaces but going through this video has made me realize the simplest of ways to test Repositories by setting up H2 in memory database. Perfectly narrated and at a good pace. Keep up the good work !!
@fandusmercius723
@fandusmercius723 4 ай бұрын
cant you use rollbacks etc?
@axwell5834
@axwell5834 3 жыл бұрын
Everything is clear and pretty straightforward! Great job!
@hinerron
@hinerron 3 жыл бұрын
Love it. You're a great teacher. I'm a Java boot camp student and I really appreciate seeing how a professional dev does it vs how I'm taught. Learning so many great tricks thanks to you!
@fsantosinfo
@fsantosinfo 3 жыл бұрын
This was the second video course I wacthed from this channel. Thank you so much for the video quality and the explanations. Really good!
@bastisprogrammingcorner
@bastisprogrammingcorner 2 жыл бұрын
Thank you! The topic of testing is often neglected when teaching programming. It makes sense to learn this very early and get into the habit of writing tests for your code. As you said, there is no way around this in professional software development.
@jarveyd8660
@jarveyd8660 2 жыл бұрын
OMG i am so glad I found you. You have such an amazing way of explaining things. You are truly a natural at this. Your voice and teaching style is so soothing, I feel like it's my close friend explaining this complicated stuff to me. You are amazing, God bless! I can't thank you enough!
@licken1408
@licken1408 3 жыл бұрын
4:20 In the UML Diagram the integration part should be StudentController.
@badripaudel77
@badripaudel77 3 жыл бұрын
Yeah, that is confusing. I was amazed for few seconds.
@vdeschuy190
@vdeschuy190 2 жыл бұрын
Thanks for confirming I was also confused :)
@luissepulveda2703
@luissepulveda2703 2 жыл бұрын
You're right
@centurion3708
@centurion3708 3 жыл бұрын
I was just looking for this topic and this appears on my recomendations, how convinient
@destro5990
@destro5990 3 жыл бұрын
It's the third time it happened to me this week
@rahff99
@rahff99 Жыл бұрын
Thank you, I'm new in Java ecosystem so your courses are very valuable. جزاك الله خيرا
@averagedev7768
@averagedev7768 Жыл бұрын
This is basically an entire university subject practice in one video. Awesome job
@tugbanur07
@tugbanur07 2 жыл бұрын
You have excellent teaching skills, thanks for your effort.
@ChetanJain1507
@ChetanJain1507 3 жыл бұрын
Yes please need a kafka tutorial as well, because now a days kafka is in demand. thanks in advance and for every tutorial, they are really helpful.
@hananurrehman
@hananurrehman 4 ай бұрын
Perhaps one of the few videos that actually show an integration test rather than the usual theoretical approach. Masha Allah keep it up.
@centurion3708
@centurion3708 3 жыл бұрын
These video finally made me understand what the hell what all this testing thing all about, loved it
@kalebtf
@kalebtf 2 жыл бұрын
Thanks a lot , among all the massive trainings out there, I have been studying yours since the past months, well and clearly explained and updated!
@uppsaladde
@uppsaladde 3 жыл бұрын
Thanks for a good tutorial, this was exactly what I needed. Keep it up! :)
@user-dc6bt8dt2g
@user-dc6bt8dt2g 2 жыл бұрын
I am a college student studying in Korea. All of your lectures are very, very good.
@agnosticmanquestionsall2409
@agnosticmanquestionsall2409 2 жыл бұрын
This is amazing, the most professional level video I've ever seen on KZbin. Liked and Subscribed.
@federicoladereche8727
@federicoladereche8727 3 жыл бұрын
Excellent tutorial! Your technical and educational skills 👨‍🎓 match your kindness and goodness. Keep it up! 💪 Saludos desde Uruguay mi amigo 💙🤍
@engnaderabdelkader5291
@engnaderabdelkader5291 3 жыл бұрын
A Symfony 4 development environment with Docker and Docker-compose kzbin.info/www/bejne/aKXCg2B8Z79qrtU
@candimahendra9457
@candimahendra9457 3 жыл бұрын
Wa alaikum salam wr. wb. I never doing any test before. And now in my new company, I have to doing test. Very helpful. Thank you for sharing.
@pawel80
@pawel80 Жыл бұрын
I had a lot of questions while watching this video, but you always answered on my questions a few minutes later, you are awesome dude.
@qwertyguy7750
@qwertyguy7750 2 жыл бұрын
Again right to the point, easily understandable and great content as always 👏🏽
@j-don6668
@j-don6668 3 жыл бұрын
Can you do a kafka tutorial? There's not many good ones out there
@MintyKanesh
@MintyKanesh 3 жыл бұрын
Yeah I've found spring kafka very confusing!
@duparcg
@duparcg 3 жыл бұрын
Especially spring batch
@skumakerguitar8708
@skumakerguitar8708 2 жыл бұрын
yes please! agree
@DerAltruist
@DerAltruist 2 жыл бұрын
@@MintyKanesh Yeah, you ever read "the castle" by kafka? Makes no sense!
@muthuicris2030
@muthuicris2030 2 жыл бұрын
kindly do one for spring kafka
@gabrielsales311
@gabrielsales311 3 жыл бұрын
Thank you Nelson! You're the best teacher
@rabiyounes8928
@rabiyounes8928 Жыл бұрын
Best unit & integration tests tutorial so far, thanks mate
@cefalea666
@cefalea666 2 жыл бұрын
For me, one of the best teachers all around.. greetings from Spain Amigo!!
@mr.personman7426
@mr.personman7426 2 жыл бұрын
When testing the if student email exists, you could use a getter for the email defined in the student model class. Great video!
@indahyusuf5391
@indahyusuf5391 Жыл бұрын
Hello Nelson Thank you so much for your professionnalisme, infact I so much enjoyed going through this testing and mocking. I am thinking of going through it once more to grasp the essentials,frankly speaking you are excellent in the ways you make things look simpler indah
@alexandre9051
@alexandre9051 2 жыл бұрын
You really know how to get the message across! Thank you very much for this video!
@karlodimjasevic527
@karlodimjasevic527 Жыл бұрын
Awesome! You've covered everything that I was looking for! Keep this up!
@rogerkaufmann1761
@rogerkaufmann1761 Жыл бұрын
You are the best teacher for programming by far.
@abessesmahi4888
@abessesmahi4888 3 жыл бұрын
و عليكم السلام و رحمة الله و بركاته، بارك الله فيك أخونا. Thank you so much brother.
@dreb.7760
@dreb.7760 2 жыл бұрын
That was a great example at the end, thank you!
@rakanasfour448
@rakanasfour448 8 ай бұрын
Thank you so much. I watched the entire tutorial all the way to the end
@gabrielfono844
@gabrielfono844 Жыл бұрын
thanks so much sir I have been working as backend engineer for 5 months I was given a task to write unit test and integration test. this give me great star. I am going ahead and enroll on your course for integration testing. thanks so much.
@matthiasbreiter4177
@matthiasbreiter4177 9 ай бұрын
Very good and great that you motivate programmers to write tests :) There is so much stuff you _will_ miss if you don't write a Test.
@bhoomikadetroja5584
@bhoomikadetroja5584 2 жыл бұрын
Such an amazing tutorial
@Devivl
@Devivl 4 ай бұрын
Thank you! You are a good teacher!
@jmf5655
@jmf5655 3 жыл бұрын
Love your courses! Greetings from Argentina
@NicoProgramando
@NicoProgramando 3 жыл бұрын
Es un capo el Amigoscode
@fufufifi2349
@fufufifi2349 5 ай бұрын
Thanks, barakaAllahu fik
@aimka77
@aimka77 Жыл бұрын
This tutorial is neat, as usual. Just a humble remark : @29:00, i think the variable expected should be named "result" (or "actual") to be coherent with what you nicely explained regarding BDD, since it's in the when part of the given-when-then methodology. Else, the assert is a little bit confusing: assertThat(expected).isTrue(); Should be: assertThat(result).isTrue(); Thanks a lot for everything you bring to the community.
@apall2764
@apall2764 3 жыл бұрын
You're a great teacher great job!
@yevheniikiprenko3639
@yevheniikiprenko3639 3 жыл бұрын
Thanks for the video! I'm really like the way you teach.
@carlitos4505
@carlitos4505 3 жыл бұрын
Thanks for this!! You’ve earned a new subscriber!
@kostiantynkarzhanov9216
@kostiantynkarzhanov9216 3 ай бұрын
Thank you! Great tutorial! 💛
@longnguyenvan9532
@longnguyenvan9532 3 жыл бұрын
Hey man, your vidieos are really amazing that I have to admit :)) If you have time, please compose socket videos. You have a good explaining so I think you can give the best anwser how the socket works. Thank you and have a good day!
@AndreyDelay
@AndreyDelay 2 жыл бұрын
Amazing lesson! Thanks for the efforts!
@gradientO
@gradientO 3 жыл бұрын
wa alaikum as salam!! Thank you for this huge tutorial. I'm still new to backend. Gotta learn more
@cuongnguyenhung9977
@cuongnguyenhung9977 2 жыл бұрын
Hey bro. Thank you so much. I love your courses, it is useful and clear.
@oberon1995
@oberon1995 2 жыл бұрын
Great course, thanks! Before watching the video, I got a little familiar with the theory of integration testing and this made it easier to understand the topic. Took a little effort to write a test to check for the possibility of deletion, it was great! I will watch your content in the future peace!
@NickRuster
@NickRuster 2 жыл бұрын
А почему future peace? Это же кусок не?
@bimsaragunarathna2900
@bimsaragunarathna2900 2 жыл бұрын
ThanX Bro. You're a great teacher. Literally saved me here
@marco.garofalo
@marco.garofalo 3 жыл бұрын
FYI the contextLoads test is not pointless at all, it verifies that the application is bootstrapped correctly and there is no exception raised by the application context. If you have missing configuration properties or some (auto)wiring issues that test would have caught it.
@Yaruk
@Yaruk 3 жыл бұрын
Thanks for this Tutorial, I have an interview tomorrow for Junit Test
@haithemothmane4558
@haithemothmane4558 2 жыл бұрын
Thanks a lot, that was really nice, perfect and well explained
@FrancoRob19
@FrancoRob19 3 жыл бұрын
An excellent material!!!! thanks for sharing knowledge!!!
@ArabSoftwareArchTalks
@ArabSoftwareArchTalks 3 жыл бұрын
You are amazing, keep moving, and thanks so much 🌷
@ibrahimqandeel5326
@ibrahimqandeel5326 2 жыл бұрын
Amazing crash course. Thank you very much.
@berihunhadis3960
@berihunhadis3960 Жыл бұрын
Thanks a lot you are always supportive
@iha3775
@iha3775 Жыл бұрын
Thanks a lot! Very usefull and simplest guide!
@faixan13
@faixan13 Жыл бұрын
great tutorial. Many thanks keep calm and say "INSHALLAH'
@derrickagyemang1259
@derrickagyemang1259 2 жыл бұрын
Great tutorial Nelson, really love your content
@sormariano
@sormariano 2 жыл бұрын
Thank you for you very useful videos and above all for your very very clear English language: this is a great added value for us followers not having English as mother tongue.
@rocavill
@rocavill 6 ай бұрын
This is a great video! Very well explained!
@buddhihasanka2877
@buddhihasanka2877 10 ай бұрын
Great video! I have learned a lot. Thank you.
@rmdaw00
@rmdaw00 2 жыл бұрын
Great Tutorial Thank you, I am learning from your course after watching other JUnit tutorial , thank you for showing a proper real world example. feeling more confident now, Looking forward to explore videos from your channel Just for others that are following here are things I had to do: - got error complaining about lambok not getting access to a class, update the version, I updated Spring boot to latest version in the pom.xml file - spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_DELAY=-1 this is the url path that worked for me
@amigoscode
@amigoscode 3 жыл бұрын
Download Diffblue to auto generate unit and integration tests www.diffblue.com/community-edition/download/promo?code=amigoscode Best selling courses ► Spring Full Stack and React Course WITH 30% OFF - amigoscode.com/p/full-stack-spring-boot-react/?product_id=2963573&coupon_code=FULLSTACK30 ► Software Testing Course - amigoscode.com/p/software-testing ► Repo to follow along: github.com/amigoscode/spring-boot-fullstack-professional/
@user-st2fj8rt7v
@user-st2fj8rt7v Жыл бұрын
why i does not found this last month? Its amazing! Hey, you have a talant to explain things by simple language!
@shyamgurunath5876
@shyamgurunath5876 3 жыл бұрын
Recently saw your channel...Loving your videos...Keep posting....Anything related to data science will be helpful...
@dubaifatimaali
@dubaifatimaali 3 жыл бұрын
Great looking forward to it
@kamalzubairov2344
@kamalzubairov2344 Жыл бұрын
Thank you very much. Very clear explanation
@rachidbenkitou
@rachidbenkitou Жыл бұрын
Great course, it was really helpful, thank you very much
@Hivstein
@Hivstein 10 ай бұрын
Salam Alikum, what to say, amazing are your courses, barak Obama fik; sorry Barak Allah fik :).
@devguyahnaf
@devguyahnaf 2 жыл бұрын
I'm a simple man. I see Nelson thumbsup, I click on video
@khalidbahri
@khalidbahri Жыл бұрын
بارك الله فيك 🤲
@rhythmicpulse2760
@rhythmicpulse2760 2 жыл бұрын
Very useful video. Thanks a lot!
@kingskings2026
@kingskings2026 2 жыл бұрын
Thanks a lot. This really saved me a lot of time.
@ekaterinasheludenko6028
@ekaterinasheludenko6028 2 жыл бұрын
Hi! This video is very good. Concepts are well explained, thank you :)
@barnardmutezo8276
@barnardmutezo8276 3 жыл бұрын
Finally! Thanks bro.
@devashishroychowdhury3080
@devashishroychowdhury3080 Жыл бұрын
It also helped me to understand the software engineering topics..
@charlieconneely
@charlieconneely 3 жыл бұрын
Great video! Thanks a lot!
@alexakias97
@alexakias97 3 жыл бұрын
Great tutorial overall. One suggestion. Plz consider zooming out a bit. Thanks!
@uvinduharshan9712
@uvinduharshan9712 Жыл бұрын
Thanks😍😍 Superb Tutorial🥰🥰
@iLlamas1
@iLlamas1 2 жыл бұрын
this looks really good, I will buy the course next month
@sebastiankarner
@sebastiankarner 9 ай бұрын
You rock! really helpful!
@user-fe6vr1nu9r
@user-fe6vr1nu9r 2 жыл бұрын
Awesome,This Tutorial is very nice!!!
@temrimoose
@temrimoose 3 жыл бұрын
Good evening dear friend I am a Moroccan developer in java spribg boot and I love your tutorials. I have a request please if you can make a video on spring kafka and thank you in advance
@otmanm4095
@otmanm4095 3 жыл бұрын
Thanks for this great video!
@singhmanmeet89
@singhmanmeet89 3 жыл бұрын
Great content brother !!
@vireshnavalli1359
@vireshnavalli1359 3 жыл бұрын
Really good video and nicely explained in detail 👍
@pasvupaspris303
@pasvupaspris303 3 ай бұрын
you can also create an ArgumentCaptor with the @Captor annotation
@peepoHappyy
@peepoHappyy 3 жыл бұрын
I was wondering if you can create a crash course on Web Development, amazing content as always :D
@cmdv
@cmdv 3 жыл бұрын
Thanks, amazing and clear
@maximlejaeghere1730
@maximlejaeghere1730 2 жыл бұрын
This is gold. Finally someone that explains testing to me in an understandable way. Thank you so much.
@kapilnayak4030
@kapilnayak4030 3 жыл бұрын
I must say god bless you. may god give you good health. you are awesome bro......
@Fooadkarimi
@Fooadkarimi 3 жыл бұрын
Great Tutorial, thanks
@jeffersonpcinfo
@jeffersonpcinfo 2 жыл бұрын
This is amazing. Obrigado Amigo.
@jthomas9751
@jthomas9751 3 жыл бұрын
Hey nelson please can you do an html and css tutorial. I find you much much understandable than the ones out there
@user-segadev
@user-segadev 2 жыл бұрын
ты молодец! желаю миллион подписчиков твоему каналу )
@ogedengbebabatunde9249
@ogedengbebabatunde9249 3 жыл бұрын
Well done Bro! Thank you
Here's The Secret How To Create These Animated Diagrams
11:12
Amigoscode
Рет қаралды 373 М.
Back End Developer Roadmap 2024
10:30
freeCodeCamp.org
Рет қаралды 408 М.
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 24 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
When Steve And His Dog Don'T Give Away To Each Other 😂️
00:21
BigSchool
Рет қаралды 16 МЛН
JUnit 5 with Mocking Workshop | Online Training | Ashok IT
3:52:00
Software Testing with Spring boot and Mockito Framework
1:14:12
Bouali Ali
Рет қаралды 19 М.
Testcontainers - From Zero to Hero. By @MarcoCodes
1:01:29
IntelliJ IDEA, a JetBrains IDE
Рет қаралды 72 М.
10 Spring and Spring Boot Common Mistakes You Need To STOP
15:49
Amigoscode
Рет қаралды 139 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 759 М.
10 Most Common Java Developer Mistakes
16:13
Amigoscode
Рет қаралды 101 М.
Spring Security Architecture Explained
14:41
Amigoscode
Рет қаралды 96 М.
Java Functional Programming | Full Course
2:22:15
Amigoscode
Рет қаралды 556 М.
The Future of AI Innovations and Application
4:05
Corporate-Payback
Рет қаралды 32
Carregando telefone com carregador cortado
1:01
Andcarli
Рет қаралды 2,6 МЛН
Выложил СВОЙ АЙФОН НА АВИТО #shorts
0:42
Дмитрий Левандовский
Рет қаралды 2,1 МЛН
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 30 МЛН
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,5 МЛН