diff --git a/spring-boot-project/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/properties/TestcontainersPropertySource.java b/spring-boot-project/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/properties/TestcontainersPropertySource.java index 10bcb2a9864c..d2df1e65b101 100644 --- a/spring-boot-project/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/properties/TestcontainersPropertySource.java +++ b/spring-boot-project/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/properties/TestcontainersPropertySource.java @@ -129,7 +129,7 @@ static TestcontainersPropertySource getOrAdd(ConfigurableEnvironment environment return getOrAdd(environment); } Assert.state(propertySource instanceof TestcontainersPropertySource, - "Incorrect DynamicValuesPropertySource type registered"); + "Incorrect TestcontainersPropertySource type registered"); return ((TestcontainersPropertySource) propertySource); }