diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 19f7ca0574..4ef993e529 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -7230,6 +7230,11 @@ dependencies is high, as you should avoid including dependencies that are unnece a typical usage of the library. In other words, you should not include optional dependencies. +NOTE: Either way, your starter must reference the core Spring Boot starter +(`spring-boot-starter`) directly or indirectly (i.e. no need to add it if your starter +relies on another starter). If a project is created with only your custom starter, Spring +Boot's core features will be honoured by the presence of the core starter. + [[boot-features-whats-next]] diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/data/RandomAccessDataFileTests.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/data/RandomAccessDataFileTests.java index faf5300d37..327fef8a5d 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/data/RandomAccessDataFileTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/data/RandomAccessDataFileTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,7 +103,8 @@ public class RandomAccessDataFileTests { @Test public void fileExists() { this.thrown.expect(IllegalArgumentException.class); - this.thrown.expectMessage("File /does/not/exist must exist"); + this.thrown.expectMessage(String.format("File %s must exist", + new File("/does/not/exist").getAbsolutePath())); new RandomAccessDataFile(new File("/does/not/exist")); } @@ -117,7 +118,8 @@ public class RandomAccessDataFileTests { @Test public void fileExistsWithConcurrentReads() { this.thrown.expect(IllegalArgumentException.class); - this.thrown.expectMessage("File /does/not/exist must exist"); + this.thrown.expectMessage(String.format("File %s must exist", + new File("/does/not/exist").getAbsolutePath())); new RandomAccessDataFile(new File("/does/not/exist"), 1); }