Commit 3f9f9a46 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Start building against Spring Data Neumann-SR7 snapshots"

See gh-25282
parent bab0862f
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -215,7 +215,9 @@ class Neo4jDataAutoConfigurationTests { ...@@ -215,7 +215,9 @@ class Neo4jDataAutoConfigurationTests {
void doesNotProvideABookmarkManagerIfNotPossible() { void doesNotProvideABookmarkManagerIfNotPossible() {
this.contextRunner.withClassLoader(new FilteredClassLoader(Caffeine.class, EmbeddedDriver.class)) this.contextRunner.withClassLoader(new FilteredClassLoader(Caffeine.class, EmbeddedDriver.class))
.withUserConfiguration(BookmarkManagementEnabledConfiguration.class) .withUserConfiguration(BookmarkManagementEnabledConfiguration.class)
.run((context) -> assertThat(context).doesNotHaveBean(BookmarkManager.class)); .run((context) -> assertThat(context).hasFailed().getFailure()
.hasMessageContaining("Bookmark management has been enabled")
.hasMessageContaining("Please provide a bookmark manager"));
} }
private static void assertDomainTypesDiscovered(Neo4jMappingContext mappingContext, Class<?>... types) { private static void assertDomainTypesDiscovered(Neo4jMappingContext mappingContext, Class<?>... types) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment