Skip to content

Commit

Permalink
add workaround for spy bean override issue in spring 6.2.0-RC3
Browse files Browse the repository at this point in the history
see spring-projects/spring-framework#33800

can be reverted when spring 6.2.0 GA comes out.
  • Loading branch information
JKatzwinkel authored Oct 31, 2024
1 parent 1d8fc48 commit d0e36b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://jitpack.io' }
// ⬇ dropwith spring 6.2.0-RC4
maven { url 'https://repo.spring.io/snapshot' }
}

dependencies {
Expand All @@ -58,6 +60,8 @@ dependencies {
}
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.3'
// ⬇ dropwith spring 6.2.0-RC4
testImplementation 'org.springframework:spring-test:6.2.0-SNAPSHOT'
}

application {
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/tla/backend/service/SentenceServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ void getSentenceSearchResultsWrapper() throws Exception {
translation.setText("Blut der ersten Geburt der Kobra");
translation.setLang(new Language[]{Language.DE});
cmd.setTranslation(translation);
var query = sentenceService.getSearchCommandAdapter(cmd);
assertNotNull(query);
doReturn(hits).when(operations).search(
any(org.springframework.data.elasticsearch.core.query.Query.class),
eq(SentenceEntity.class),
Expand Down

0 comments on commit d0e36b6

Please sign in to comment.