Software Testing Tutorial - Learn Unit Testing and Integration Testing

Ғылым және технология

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

Пікірлер: 390

  • @calkelpdiver
    @calkelpdiver2 жыл бұрын

    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.

  • @bastisprogrammingcorner
    @bastisprogrammingcorner2 жыл бұрын

    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.

  • @hinerron
    @hinerron3 жыл бұрын

    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!

  • @axwell5834
    @axwell58343 жыл бұрын

    Everything is clear and pretty straightforward! Great job!

  • @poojaandpawan6282
    @poojaandpawan62822 жыл бұрын

    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

    3 ай бұрын

    cant you use rollbacks etc?

  • @fsantosinfo
    @fsantosinfo3 жыл бұрын

    This was the second video course I wacthed from this channel. Thank you so much for the video quality and the explanations. Really good!

  • @jarveyd8660
    @jarveyd86602 жыл бұрын

    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!

  • @kalebtf
    @kalebtf2 жыл бұрын

    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!

  • @ChetanJain1507
    @ChetanJain15073 жыл бұрын

    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.

  • @mr.personman7426
    @mr.personman74262 жыл бұрын

    When testing the if student email exists, you could use a getter for the email defined in the student model class. Great video!

  • @licken1408
    @licken14083 жыл бұрын

    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

  • @pawel80
    @pawel8011 ай бұрын

    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.

  • @hananurrehman
    @hananurrehman3 ай бұрын

    Perhaps one of the few videos that actually show an integration test rather than the usual theoretical approach. Masha Allah keep it up.

  • @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

  • @centurion3708
    @centurion37083 жыл бұрын

    These video finally made me understand what the hell what all this testing thing all about, loved it

  • @candimahendra9457
    @candimahendra94573 жыл бұрын

    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.

  • @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.

  • @rahff99
    @rahff99 Жыл бұрын

    Thank you, I'm new in Java ecosystem so your courses are very valuable. جزاك الله خيرا

  • @agnosticmanquestionsall2409
    @agnosticmanquestionsall24092 жыл бұрын

    This is amazing, the most professional level video I've ever seen on KZread. Liked and Subscribed.

  • @rabiyounes8928
    @rabiyounes8928 Жыл бұрын

    Best unit & integration tests tutorial so far, thanks mate

  • @tugbanur07
    @tugbanur072 жыл бұрын

    You have excellent teaching skills, thanks for your effort.

  • @karlodimjasevic527
    @karlodimjasevic52711 ай бұрын

    Awesome! You've covered everything that I was looking for! Keep this up!

  • @uppsaladde
    @uppsaladde3 жыл бұрын

    Thanks for a good tutorial, this was exactly what I needed. Keep it up! :)

  • @averagedev7768
    @averagedev7768 Жыл бұрын

    This is basically an entire university subject practice in one video. Awesome job

  • @qwertyguy7750
    @qwertyguy7750 Жыл бұрын

    Again right to the point, easily understandable and great content as always 👏🏽

  • @user-dc6bt8dt2g
    @user-dc6bt8dt2g2 жыл бұрын

    I am a college student studying in Korea. All of your lectures are very, very good.

  • @gildashuart6692
    @gildashuart6692 Жыл бұрын

    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.

  • @rmdaw00
    @rmdaw002 жыл бұрын

    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

  • @cefalea666
    @cefalea6662 жыл бұрын

    For me, one of the best teachers all around.. greetings from Spain Amigo!!

  • @dreb.7760
    @dreb.77602 жыл бұрын

    That was a great example at the end, thank you!

  • @alexandre9051
    @alexandre90512 жыл бұрын

    You really know how to get the message across! Thank you very much for this video!

  • @rakanasfour448
    @rakanasfour4487 ай бұрын

    Thank you so much. I watched the entire tutorial all the way to the end

  • @centurion3708
    @centurion37083 жыл бұрын

    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

  • @matthiasbreiter4177
    @matthiasbreiter41778 ай бұрын

    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.

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov92162 ай бұрын

    Thank you! Great tutorial! 💛

  • @rogerkaufmann1761
    @rogerkaufmann1761 Жыл бұрын

    You are the best teacher for programming by far.

  • @gabrielsales311
    @gabrielsales3113 жыл бұрын

    Thank you Nelson! You're the best teacher

  • @marco.garofalo
    @marco.garofalo3 жыл бұрын

    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.

  • @Devivl
    @Devivl3 ай бұрын

    Thank you! You are a good teacher!

  • @carlitos4505
    @carlitos45053 жыл бұрын

    Thanks for this!! You’ve earned a new subscriber!

  • @bhoomikadetroja5584
    @bhoomikadetroja55842 жыл бұрын

    Such an amazing tutorial

  • @apall2764
    @apall27643 жыл бұрын

    You're a great teacher great job!

  • @abessesmahi4888
    @abessesmahi48883 жыл бұрын

    و عليكم السلام و رحمة الله و بركاته، بارك الله فيك أخونا. Thank you so much brother.

  • @federicoladereche8727
    @federicoladereche87273 жыл бұрын

    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 kzread.info/dash/bejne/ZKiTtI9_Yr2dqNY.html

  • @cuongnguyenhung9977
    @cuongnguyenhung99772 жыл бұрын

    Hey bro. Thank you so much. I love your courses, it is useful and clear.

  • @yevheniikiprenko3639
    @yevheniikiprenko36393 жыл бұрын

    Thanks for the video! I'm really like the way you teach.

  • @longnguyenvan9532
    @longnguyenvan95323 жыл бұрын

    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
    @AndreyDelay2 жыл бұрын

    Amazing lesson! Thanks for the efforts!

  • @oberon1995
    @oberon19952 жыл бұрын

    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? Это же кусок не?

  • @pasvupaspris303
    @pasvupaspris3032 ай бұрын

    you can also create an ArgumentCaptor with the @Captor annotation

  • @derrickagyemang1259
    @derrickagyemang12592 жыл бұрын

    Great tutorial Nelson, really love your content

  • @dubaifatimaali
    @dubaifatimaali3 жыл бұрын

    Great looking forward to it

  • @rocavill
    @rocavill5 ай бұрын

    This is a great video! Very well explained!

  • @ArabSoftwareArchTalks
    @ArabSoftwareArchTalks3 жыл бұрын

    You are amazing, keep moving, and thanks so much 🌷

  • @jmf5655
    @jmf56553 жыл бұрын

    Love your courses! Greetings from Argentina

  • @NicoProgramando

    @NicoProgramando

    3 жыл бұрын

    Es un capo el Amigoscode

  • @shyamgurunath5876
    @shyamgurunath58763 жыл бұрын

    Recently saw your channel...Loving your videos...Keep posting....Anything related to data science will be helpful...

  • @fufufifi2349
    @fufufifi23494 ай бұрын

    Thanks, barakaAllahu fik

  • @gradientO
    @gradientO3 жыл бұрын

    wa alaikum as salam!! Thank you for this huge tutorial. I'm still new to backend. Gotta learn more

  • @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!

  • @buddhihasanka2877
    @buddhihasanka287710 ай бұрын

    Great video! I have learned a lot. Thank you.

  • @sormariano
    @sormariano2 жыл бұрын

    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.

  • @haithemothmane4558
    @haithemothmane45582 жыл бұрын

    Thanks a lot, that was really nice, perfect and well explained

  • @maximlejaeghere1730
    @maximlejaeghere17302 жыл бұрын

    This is gold. Finally someone that explains testing to me in an understandable way. Thank you so much.

  • @bimsaragunarathna2900
    @bimsaragunarathna29002 жыл бұрын

    ThanX Bro. You're a great teacher. Literally saved me here

  • @ibrahimqandeel5326
    @ibrahimqandeel53262 жыл бұрын

    Amazing crash course. Thank you very much.

  • @berihunhadis3960
    @berihunhadis3960 Жыл бұрын

    Thanks a lot you are always supportive

  • @barnardmutezo8276
    @barnardmutezo82763 жыл бұрын

    Finally! Thanks bro.

  • @FrancoRob19
    @FrancoRob193 жыл бұрын

    An excellent material!!!! thanks for sharing knowledge!!!

  • @Yaruk
    @Yaruk3 жыл бұрын

    Thanks for this Tutorial, I have an interview tomorrow for Junit Test

  • @iha3775
    @iha3775 Жыл бұрын

    Thanks a lot! Very usefull and simplest guide!

  • @sebastiankarner
    @sebastiankarner8 ай бұрын

    You rock! really helpful!

  • @charlieconneely
    @charlieconneely3 жыл бұрын

    Great video! Thanks a lot!

  • @singhmanmeet89
    @singhmanmeet893 жыл бұрын

    Great content brother !!

  • @kingskings2026
    @kingskings20262 жыл бұрын

    Thanks a lot. This really saved me a lot of time.

  • @rachidbenkitou
    @rachidbenkitou Жыл бұрын

    Great course, it was really helpful, thank you very much

  • @faixan13
    @faixan13 Жыл бұрын

    great tutorial. Many thanks keep calm and say "INSHALLAH'

  • @j-don6668
    @j-don66683 жыл бұрын

    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

  • @kamalzubairov2344
    @kamalzubairov2344 Жыл бұрын

    Thank you very much. Very clear explanation

  • @iLlamas1
    @iLlamas12 жыл бұрын

    this looks really good, I will buy the course next month

  • @rhythmicpulse2760
    @rhythmicpulse27602 жыл бұрын

    Very useful video. Thanks a lot!

  • @devguyahnaf
    @devguyahnaf2 жыл бұрын

    I'm a simple man. I see Nelson thumbsup, I click on video

  • @temrimoose
    @temrimoose3 жыл бұрын

    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

  • @ekaterinasheludenko6028
    @ekaterinasheludenko6028 Жыл бұрын

    Hi! This video is very good. Concepts are well explained, thank you :)

  • @otmanm4095
    @otmanm40953 жыл бұрын

    Thanks for this great video!

  • @user-fe6vr1nu9r
    @user-fe6vr1nu9r2 жыл бұрын

    Awesome,This Tutorial is very nice!!!

  • @uvinduharshan9712
    @uvinduharshan9712 Жыл бұрын

    Thanks😍😍 Superb Tutorial🥰🥰

  • @alexakias97
    @alexakias973 жыл бұрын

    Great tutorial overall. One suggestion. Plz consider zooming out a bit. Thanks!

  • @jeffersonpcinfo
    @jeffersonpcinfo2 жыл бұрын

    This is amazing. Obrigado Amigo.

  • @vireshnavalli1359
    @vireshnavalli13593 жыл бұрын

    Really good video and nicely explained in detail 👍

  • @Hivstein
    @Hivstein9 ай бұрын

    Salam Alikum, what to say, amazing are your courses, barak Obama fik; sorry Barak Allah fik :).

  • @Fooadkarimi
    @Fooadkarimi3 жыл бұрын

    Great Tutorial, thanks

  • @devashishroychowdhury3080
    @devashishroychowdhury3080 Жыл бұрын

    It also helped me to understand the software engineering topics..

  • @techzact
    @techzact3 жыл бұрын

    thx for your courses :)

  • @user-segadev
    @user-segadev2 жыл бұрын

    ты молодец! желаю миллион подписчиков твоему каналу )

  • @miguelangelsalinasgancedo141
    @miguelangelsalinasgancedo1412 жыл бұрын

    Great course like everyone !!

  • @ogedengbebabatunde9249
    @ogedengbebabatunde92493 жыл бұрын

    Well done Bro! Thank you

  • @cmdv
    @cmdv3 жыл бұрын

    Thanks, amazing and clear

  • @peepoHappyy
    @peepoHappyy3 жыл бұрын

    I was wondering if you can create a crash course on Web Development, amazing content as always :D

  • @Asilkhan234
    @Asilkhan2343 жыл бұрын

    Thank you! You are great

  • @shridhar_rao
    @shridhar_rao2 жыл бұрын

    Awesome! Thanks!

Келесі