Skip to content

Fix SonarQube code smells: @Service and @InjectMocks#165

Merged
igorsatsyuk merged 1 commit into
mainfrom
fix/#14-sonarqube-static-mock-imports
Jul 22, 2026
Merged

Fix SonarQube code smells: @Service and @InjectMocks#165
igorsatsyuk merged 1 commit into
mainfrom
fix/#14-sonarqube-static-mock-imports

Conversation

@igorsatsyuk

Copy link
Copy Markdown
Owner

Summary

  • Replace @component with @service on EventHashService (SonarQube: service-layer annotation)
  • Replace manual mock injection with @Injectmocks in 4 test classes (AuditLogQueryRepositoryImplTest, AuditIntegrityCheckServiceTest, AuditLogQueryServiceTest, BatchIntegrityCheckerTest)

Closes #14

@igorsatsyuk
igorsatsyuk merged commit 430a01f into main Jul 22, 2026
8 checks passed
@igorsatsyuk
igorsatsyuk deleted the fix/#14-sonarqube-static-mock-imports branch July 22, 2026 14:55
@igorsatsyuk igorsatsyuk self-assigned this Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BACKEND] Поддержка дополнительных типов событий

1 participant