feat: Add mockito for mockBeans in tests

This commit is contained in:
Magnus Leßmann (@MarkL4YG) 2024-11-19 21:46:00 +01:00
parent edc2bf70c6
commit 40111b4e03
Signed by: Mark.TwoFive
GPG key ID: 5B5EBCBE331F1E6F

View file

@ -50,6 +50,7 @@ dependencies {
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("org.assertj:assertj-core")
testImplementation("org.mockito:mockito-core")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
@ -58,5 +59,6 @@ tasks.withType<Test> {
useJUnitPlatform()
systemProperty("spring.profiles.active", "test")
jvmArgs("-XX:+EnableDynamicAgentLoading") // DynamicAgentLoading for byteBuddy within Mockito
testLogging.showStandardStreams = true
}