Skip to content

Commit 3f9f9a4

Browse files
committed
Polish "Start building against Spring Data Neumann-SR7 snapshots"
See gh-25282
1 parent bab0862 commit 3f9f9a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/Neo4jDataAutoConfigurationTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 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.
@@ -215,7 +215,9 @@ void providesASingletonScopedBookmarkManagerIfNecessaryAndPossible() {
215215
void doesNotProvideABookmarkManagerIfNotPossible() {
216216
this.contextRunner.withClassLoader(new FilteredClassLoader(Caffeine.class, EmbeddedDriver.class))
217217
.withUserConfiguration(BookmarkManagementEnabledConfiguration.class)
218-
.run((context) -> assertThat(context).doesNotHaveBean(BookmarkManager.class));
218+
.run((context) -> assertThat(context).hasFailed().getFailure()
219+
.hasMessageContaining("Bookmark management has been enabled")
220+
.hasMessageContaining("Please provide a bookmark manager"));
219221
}
220222

221223
private static void assertDomainTypesDiscovered(Neo4jMappingContext mappingContext, Class<?>... types) {

0 commit comments

Comments
 (0)