Framework Mode - @ExtendWith annotation
Folder Structure
project-root/ ├── src/ │ ├── main/ │ │ └── java/ │ │ └── com/example/app/ │ │ └── Application.java │ └── test/ │ └── java/ │ └── com/example/app/ │ ├── extensions/ │ │ └── CustomExtension.java │ ├── tests/ │ │ └── SampleTest.java │ └── utils/ │ └── TestUtils.java └── pom.xml
This structure follows Maven conventions for a JUnit test project. The extensions folder holds custom extension classes used with @ExtendWith. Test classes are under tests.