A practical collection of JUnit tests for learning and practicing Java testing.
This repository is designed for beginners to understand how to write unit tests, handle exceptions, and use parameterized tests in Java.
JUnit is a popular Java testing framework that allows developers to test their code automatically.
This repo includes simple examples covering:
- Basic unit tests
- Exception testing
- Parameterized tests
- Testing common Java classes and small projects
JUnit-Examples-for-Beginners/
β
ββ src/
β ββ main
β ββ java
β ββ jUnit
β β ββ C01_Calculator.java # Basic arithmetic operations
β β
β β
β β
β ββ test/java/jUnit
β ββ C01_CalculatorTest.java
β ββ J01_Assertions.java
β ββ J02_BeforeAfterEachhAll.java
All content in this repository is the original work of the author. You may use it for learning and reference purposes only. Re-uploading, redistributing, or presenting this work as your own is not allowed.