Skip to content

ImrenR/JUnit-Examples-for-Beginners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

JUnit-Examples-for-Beginners

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.


πŸ“– About

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

πŸ—‚ Project Structure

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

License

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.

About

A beginner-friendly collection of Java unit tests using JUnit , including examples for Calculator, String utilities, and BankAccount. Learn unit testing, exception handling, and test structure.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages