40 lines
884 B
Markdown
40 lines
884 B
Markdown
# Testing
|
|
|
|
## Run Tests
|
|
|
|
```powershell
|
|
mvn test
|
|
```
|
|
|
|
## Current Test Suite
|
|
|
|
Located in `src/test/java/vassistent/service`:
|
|
|
|
- `BinaryEventServiceTest`
|
|
- `DataPersistenceServiceTest`
|
|
- `EvaluationServiceTest`
|
|
- `StatisticsServiceTest`
|
|
|
|
## Current Status (Java 17)
|
|
|
|
The suite does not fully pass on Java 17 because of legacy Mockito dependency:
|
|
|
|
- project uses `mockito-all:2.0.2-beta`
|
|
- this version relies on CGLIB behavior that conflicts with modern Java module access
|
|
- result: Mockito-based tests fail at initialization (`InaccessibleObjectException`)
|
|
|
|
Tests not depending on Mockito are expected to run successfully.
|
|
|
|
## Recommended Fix
|
|
|
|
Replace legacy dependency with modern Mockito stack, for example:
|
|
|
|
- `org.mockito:mockito-core` (or `mockito-junit-jupiter`)
|
|
- ensure JUnit Jupiter engine is configured by Surefire
|
|
|
|
After dependency update, rerun:
|
|
|
|
```powershell
|
|
mvn test
|
|
```
|