Framework Mode - Why mocking isolates units under test
Folder Structure for JUnit Test Framework with Mocking
project-root/
├── src/
│ ├── main/
│ │ └── java/
│ │ └── com/example/app/
│ │ ├── service/
│ │ └── repository/
│ └── test/
│ └── java/
│ └── com/example/app/
│ ├── service/
│ │ └── ServiceTest.java <-- Unit tests with mocks here
│ └── repository/
│ └── RepositoryTest.java
├── build.gradle (or pom.xml)
└── src/test/resources/
└── test-config.properties