Skip to content

Commit d368767

Browse files
committed
Merge pull request #44942 from nosan
* gh-44942: Fix CassandraRepositoriesAutoConfigurationTests Closes gh-44942
2 parents f2f0b0c + a55f5f0 commit d368767

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraRepositoriesAutoConfigurationTests.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -79,15 +79,15 @@ void doesNotTriggerDefaultRepositoryDetectionIfCustomized() {
7979
@Test
8080
void enablingReactiveRepositoriesDisablesImperativeRepositories() {
8181
this.contextRunner.withUserConfiguration(DefaultConfiguration.class)
82-
.withPropertyValues("spring.cassandra.repositories.type=reactive")
83-
.run((context) -> assertThat(context).doesNotHaveBean(CityCassandraRepository.class));
82+
.withPropertyValues("spring.data.cassandra.repositories.type=reactive")
83+
.run((context) -> assertThat(context).doesNotHaveBean(CityRepository.class));
8484
}
8585

8686
@Test
8787
void enablingNoRepositoriesDisablesImperativeRepositories() {
8888
this.contextRunner.withUserConfiguration(DefaultConfiguration.class)
89-
.withPropertyValues("spring.cassandra.repositories.type=none")
90-
.run((context) -> assertThat(context).doesNotHaveBean(CityCassandraRepository.class));
89+
.withPropertyValues("spring.data.cassandra.repositories.type=none")
90+
.run((context) -> assertThat(context).doesNotHaveBean(CityRepository.class));
9191
}
9292

9393
private ManagedTypes getManagedTypes(AssertableApplicationContext context) {

0 commit comments

Comments
 (0)