Code Monkey home page Code Monkey logo

junit5-testing-showcase's Introduction

JUnit5-Testing-Showcase

Introduction

Welcome to my JUnit5 Testing Showcase! This repository demonstrates the skills and knowledge I gained from the Udemy courses "Practical Java Unit Testing with JUnit 5" and "Mockito: Next-Level Java Unit Testing." It serves as a portfolio of test cases and scenarios, reflecting best practices in unit testing with JUnit 5 and Mockito. The repository is especially relevant as I prepare for my internship at Nasdaq-Verafin, where I'll be applying these skills.

What's Inside

  • HappyHotelApp
    • Series of JUnit tests leveraging different feautres of Mockito.
  • HealthyCoderApp
    • BMICalculatorTest.java: A series of unit tests for a BMI calculator application.
    • DietPlannerTest.java: Tests for a diet planning tool, showcasing various test scenarios.
  • RealStateApp
    • ApartmentRaterTest.java: A series of unit tests for the Real Estate application.
    • RandomApartmentGeneratorTest.java: A series of unit tests for the Real Estate application.

These files exemplify how to write effective and practical unit tests in JUnit 5. They include examples of basic Test Driven Development (TDD) and demonstrate how to create real-world test scenarios.

Setup and Running Tests

These tests were made using:

  • Java JDK (version 8 or higher)
  • An IDE with JUnit 5 support (like Eclipse or IntelliJ IDEA)
  • Mockito

Acknowledgments

  • Udemy Course: "Practical Java Unit Testing with JUnit 5" by Adrien Weich.
  • Udemy Course: "Mockito: Next-Level Java Unit Testing" by Adrien Weich.
  • Nasdaq-Verafin for inspiring the application of these skills in a professional setting.

Certification

junit5-testing-showcase's People

Contributors

davidguamandavila avatar

Stargazers

 avatar

Watchers

 avatar

junit5-testing-showcase's Issues

Organize JUnit Tests by Application

Problem

  • Since we have JUnit tests for different applications it would be better if they are stored in different directories

Solution

  • Create different directories

HappyHotelAppTests corrupted when changing from .class to java file

Problem

When visualizing certain files on GitHub from the HappyHotelAppTests folder they are not visible. Also, when downloaded they are not readable

Solution

Modify the files in eclipse to the .java extension. Run the tests. Commit the changes and see how they appear in GitHub

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.