4
4
.
.
1
1
J
J
U
U
n
n
i
i
t
t
5
5
I
I
n
n
f
f
o
o
Following tutorials show how to use JUnit 5 to test Application.
Both Application and Test Classes will have the same Package structure (for easier navigation) where
Application Classes are organized under src\main
Test Classes are organized under src\test
You can Create Test Class either
Manually (manually create Package and Test Class under src\test\java)
Automatically (IntelliJ automatically recreates Packages and creates Test Class under src\test\java)
You can Run Tests by
Right Clicking on the Package or Class (inside Project Hierarchy)
Right Clicking on the Class or Method Name (inside opened Class File)
Clicking left from Class or Method Name (inside opened Class File)
Application Structure (created Test Packages and Classes)