884 B
884 B
Testing
Run Tests
mvn test
Current Test Suite
Located in src/test/java/vassistent/service:
BinaryEventServiceTestDataPersistenceServiceTestEvaluationServiceTestStatisticsServiceTest
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(ormockito-junit-jupiter)- ensure JUnit Jupiter engine is configured by Surefire
After dependency update, rerun:
mvn test