Algo Alchemist
Algo Alchemist
  • 2
  • 21 369
Unit Testing Real World Applications with Java in 2024!
In this tutorial, we will dive into the realm of unit testing real world, production-grade application in Java. This tutorial will go further than most unit testing videos which cover only the most basic unit testing scenarios. My goal is to teach you how to mock real-world production scenarios, such as testing calls to external APIs in your application.
Unit testing is a crucial aspect of software development, ensuring the reliability and robustness of our code. We'll walk you through the process step-by-step using popular testing frameworks like JUnit and Mockito, along with the powerful code coverage tool, JaCoCo.
By the end of this video, you'll have a solid understanding of:
Writing unit tests for Java applications. 📝
Mocking external dependencies using Mockito. 🔧
Evaluating code coverage with JaCoCo. 📊
Whether you're a seasoned developer looking to enhance your testing skills or a newcomer eager to learn, this tutorial is designed to help you level up your Java testing game in 2024!
Don't forget to like, subscribe, and hit the notification bell to stay updated with our latest content. Let's dive into the world of unit testing and elevate our Java development skills together! 🚀💻✨
Tools used in this video:
Mockito (mocking framework): site.mockito.org/
JUnit (Java testing framework): junit.org/junit5/
JaCoCo (Code coverage tool): www.jacoco.org/jacoco/trunk/index.html
Gradle (build tool): gradle.org/
#Java #UnitTesting #Mockito #JUnit #JaCoCo #SoftwareDevelopment #ProgrammingTutorial #CodeCoverage
มุมมอง: 173

วีดีโอ

Dockerize Your Next.js 14 App in 2024!
มุมมอง 21K10 หลายเดือนก่อน
🚀 Ready to take your Next.js development to the next level? In this tutorial, we'll guide you through the process of creating a Dockerfile and running your Next.js 14 app in a Docker container. Docker provides a streamlined way to manage dependencies, ensure consistency across environments, and simplify deployment. Let's dive in and empower your Next.js projects with the efficiency of Docker! 🔍...

ความคิดเห็น

  • @Yassineaalouch
    @Yassineaalouch 22 วันที่ผ่านมา

    ty sooooooo much

  • @m7mdnho154
    @m7mdnho154 หลายเดือนก่อน

    dacker

  • @8koi245
    @8koi245 หลายเดือนก่อน

    ayo valo, wanna lose some ranks w me? hahaha

  • @moodcatching
    @moodcatching หลายเดือนก่อน

    Hey,, this is really helpful and I wanted to say thank you. Is there any change you can do an in-depth tutorial on how to install this for windows or guide me towards good sources? I have been developing my very first app with python and nextjs14, but it has been a nightmare for me so far, developing on Windows with limtied knowledge, about dependecnies and how to use virtial environments correctly, I must have installed some packages and dependencies globally and now my coding environment is acting very weird sometimes. Would be nice to use Docker on Windows. Also could you explain why you use Powershell, is it better to use on Windows? I used it with Cursor AI and had some problems and it suggested that Pwoershell might not be the best way to execute some commands for me? Fuck, I should really learn more about how I can keep my own system clean and save while stile being able to code effectively. Do you know how Docker comes into play if I have a flask nd celery backend that is connected to Supabase also, can Docker access all of that Auth and Data just fine, too?

  • @sergnazarchuk1003
    @sergnazarchuk1003 3 หลายเดือนก่อน

    thanks, that was cool

  • @chimaobimmoses2991
    @chimaobimmoses2991 3 หลายเดือนก่อน

    Nice video

  • @thealgoalchemist
    @thealgoalchemist 3 หลายเดือนก่อน

    Wow. Thank you all so much for the support on this video! I have been busy getting acclimated with my first full-time Software Engineering job this year, but I promise more videos are on the way 😃 If you're reading this, drop a comment with what video you would like to see next!

    • @moodcatching
      @moodcatching หลายเดือนก่อน

      How to setup/use Windows safely, effectively in a modern app coding world would be interesting to lwearn for me personally, but then again iam a totl beginner :P

    • @Yassineaalouch
      @Yassineaalouch 22 วันที่ผ่านมา

      hi first thank you soo much Could you please create a comprehensive video tutorial on how to deploy a Next.js project using Docker to an AWS EC2 instance, and also how to set up a CI/CD pipeline for continuous integration and deployment?

  • @nslookup2011
    @nslookup2011 3 หลายเดือนก่อน

    simple and straight forward🤏

  • @AsharSi
    @AsharSi 4 หลายเดือนก่อน

    Which vs code theme you are using.... It's amazing

    • @thealgoalchemist
      @thealgoalchemist 3 หลายเดือนก่อน

      It's called Bearded Theme :)

  • @ghostpants8172
    @ghostpants8172 4 หลายเดือนก่อน

    My man 👊

  • @DigitalAlchemyst
    @DigitalAlchemyst 4 หลายเดือนก่อน

    Am I correct in understanding that docker /app directory and the next.js /app directory are NOT the same? I think it should be said in a video somewhere if they are or are not, but its my understanding NOT. Nice name btw

  • @MarlonEnglemam
    @MarlonEnglemam 5 หลายเดือนก่อน

    How to run the app in dev mode with hot reloading inside of the container?

    • @azhar_waheed
      @azhar_waheed 2 หลายเดือนก่อน

      Please let me know if you find some resource to do that

    • @allysonthales
      @allysonthales หลายเดือนก่อน

      devcontainers or use docker compose to set a volume and run "npm run dev" in the container

  • @mcagbanlog7499
    @mcagbanlog7499 6 หลายเดือนก่อน

    i love your content from PH

  • @mntdev
    @mntdev 6 หลายเดือนก่อน

    Thank you. From Brazil.

  • @yogawithaaron
    @yogawithaaron 6 หลายเดือนก่อน

    Thank you for this great tutorial! This video helped me understand what Docker is, how it can be used, and how to use it with Next.js specifically.

  • @sanketgund4924
    @sanketgund4924 6 หลายเดือนก่อน

    Gamer in house

  • @norvusordoseclorum
    @norvusordoseclorum 6 หลายเดือนก่อน

    Would have been good to mention the npm equivalent commands

  • @norvusordoseclorum
    @norvusordoseclorum 6 หลายเดือนก่อน

    Great video, it's amazing how you packed more into a few minutes than what a lot of TH-camrs would add in, in double the time

  • @phoenixflower1225
    @phoenixflower1225 6 หลายเดือนก่อน

    Excellent Tutorial - so calm and composed excellently relays the necessary actions

  • @isaacnam2765
    @isaacnam2765 6 หลายเดือนก่อน

    thanks! very helpful

  • @ShaneCranor
    @ShaneCranor 7 หลายเดือนก่อน

    Would love a tutorial on how to deploy this on aws/gcp, and a way to have it automatically update from pushes to a github repo, similar to how cloudflare pages works.

  • @miranda2622
    @miranda2622 7 หลายเดือนก่อน

    Thank you, it is working for me. Only 2 questions - how to name container properly (currently it is nervous_mayer))) & How to start container in next visit?

  • @hollidaycursive
    @hollidaycursive 7 หลายเดือนก่อน

    great 1st video

  • @ademolaakindotuni5896
    @ademolaakindotuni5896 7 หลายเดือนก่อน

    This a very good tutorial. Keep them coming! 🙌

  • @josegquintero5276
    @josegquintero5276 7 หลายเดือนก่อน

    But with this approach you need to have installed nodejs in host machine because if you doesn't install node_modules in host machine vscode show typing errors. How i can avoid that ? i want to run in docker containers without needing to have installed node tools in host machine, just have a fresh installations of any desire SO with git, vscode and docker

    • @ward7576
      @ward7576 7 หลายเดือนก่อน

      To use Docker as it is supposed to work, you should add node_modules to .dockerignore file (in order to avoid copying a lot of context over to image) in order to let image run dependency install as locally you might use something other than yarn and, when it's copied over, there will be problems with that. It's one best practices to allow for bind mounts in order for code changes to be instantly reflected in container (solely for local development). Not only that, but you should make sure that the user that runs the code, has matching UID with you locally so you don't get permission errors.

  • @tonysobreira
    @tonysobreira 7 หลายเดือนก่อน

    Thank you very much

  • @rohansen6872
    @rohansen6872 7 หลายเดือนก่อน

    what a great to-the-point explaination video!!!

  • @johndevnoza4223
    @johndevnoza4223 7 หลายเดือนก่อน

    PRO TIP. dont play too much games.... anyway thanks for the video. liked.

  • @SmileByte007
    @SmileByte007 8 หลายเดือนก่อน

    Superb🔥

  • @cruzcreez65
    @cruzcreez65 8 หลายเดือนก่อน

    Nice One make more video like that exceptional 🎉🎉

  • @tasnimalam6881
    @tasnimalam6881 8 หลายเดือนก่อน

    🤟🤟

  • @alexdin1565
    @alexdin1565 8 หลายเดือนก่อน

    I stumbled upon this video by accident, but now I can't believe it's not viral yet!

  • @JoeBoo532
    @JoeBoo532 8 หลายเดือนก่อน

    short and sweet! hand down to you @Algo! ✌✌✌✌

  • @rinkirathore6502
    @rinkirathore6502 8 หลายเดือนก่อน

    Thanks man

  • @benjaoliva3383
    @benjaoliva3383 8 หลายเดือนก่อน

    How you pass env variables in a secure way ? Like passing many of them ?

    • @hollidaycursive
      @hollidaycursive 7 หลายเดือนก่อน

      using a .env or .env.local file

    • @benjaoliva3383
      @benjaoliva3383 7 หลายเดือนก่อน

      @@hollidaycursive yeah but you have to build up the file first, idk if its secure to do it on a CI instance like Github Actions.

  • @nunajah
    @nunajah 8 หลายเดือนก่อน

    Pls tell me name your wallpaper

  • @remixowlz
    @remixowlz 9 หลายเดือนก่อน

    Thank you sir, it worked! Subbed and liked. Thanks alot!

  • @anjankarmaker
    @anjankarmaker 9 หลายเดือนก่อน

    i love your wallpaper, can you provide us the wallpaper

  • @muhammadashrafarif6945
    @muhammadashrafarif6945 9 หลายเดือนก่อน

    can we deploy next js to Apache Tomcat !

  • @groohgle6478
    @groohgle6478 9 หลายเดือนก่อน

    you man great toturial, i'm tring to convert my next app into a app with live reload while i'm developing, do you have any idea how to do it?

    • @hollidaycursive
      @hollidaycursive 7 หลายเดือนก่อน

      It should be happening already. Try to delete the .next dir and start the app again.

  • @nightrider1413
    @nightrider1413 9 หลายเดือนก่อน

    I've got to say: really nice video Algo, no bull and straight to the point - explaining every step along on the way. Very good job!

  • @yesmanic
    @yesmanic 9 หลายเดือนก่อน

    How to do a git pull?

    • @thealgoalchemist
      @thealgoalchemist 9 หลายเดือนก่อน

      I got you with a git basics video sir🫡 subscribe to stay tuned

    • @hollidaycursive
      @hollidaycursive 7 หลายเดือนก่อน

      If you have the repo already cloned, type git pull

  • @quamzgraphix9826
    @quamzgraphix9826 9 หลายเดือนก่อน

    Great tutorial 🎉keep moving 🎉

  • @isaacidibia2117
    @isaacidibia2117 10 หลายเดือนก่อน

    Thank you for this. Really helpful ❤