Merge branch '1.5.x'

pull/11387/merge
Stephane Nicoll 7 years ago
commit f0b210c751

@ -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 a typical usage of the library. In other words, you should not include optional
dependencies. 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]] [[boot-features-whats-next]]

@ -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"); * 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.
@ -103,7 +103,8 @@ public class RandomAccessDataFileTests {
@Test @Test
public void fileExists() { public void fileExists() {
this.thrown.expect(IllegalArgumentException.class); 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")); new RandomAccessDataFile(new File("/does/not/exist"));
} }
@ -117,7 +118,8 @@ public class RandomAccessDataFileTests {
@Test @Test
public void fileExistsWithConcurrentReads() { public void fileExistsWithConcurrentReads() {
this.thrown.expect(IllegalArgumentException.class); 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); new RandomAccessDataFile(new File("/does/not/exist"), 1);
} }

Loading…
Cancel
Save