Browse Source

Merge branch '1.5.x'

pull/8768/head
Stephane Nicoll 9 years ago
parent
commit
ff50331168
  1. 2
      spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc
  2. 2
      spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/LayoutsTests.java
  3. 8
      spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/data/RandomAccessDataFileTests.java

2
spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc

@ -719,7 +719,7 @@ an optional dependency, for example with Maven you would add: @@ -719,7 +719,7 @@ an optional dependency, for example with Maven you would add:
</dependency>
----
With Gradle, you can use the https://github.com/spring-projects/gradle-plugins/tree/master/propdeps-plugin[propdeps-plugin]
With Gradle, you can use the https://github.com/spring-gradle-plugins/propdeps-plugin[propdeps-plugin]
and specify:
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]

2
spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/LayoutsTests.java

@ -55,7 +55,7 @@ public class LayoutsTests { @@ -55,7 +55,7 @@ public class LayoutsTests {
@Test
public void unknownFile() throws Exception {
this.thrown.equals(IllegalStateException.class);
this.thrown.expect(IllegalStateException.class);
this.thrown.expectMessage("Unable to deduce layout for 'test.txt'");
Layouts.forFile(new File("test.txt"));
}

8
spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/data/RandomAccessDataFileTests.java

@ -87,28 +87,28 @@ public class RandomAccessDataFileTests { @@ -87,28 +87,28 @@ public class RandomAccessDataFileTests {
@Test
public void fileNotNull() throws Exception {
this.thrown.expect(IllegalArgumentException.class);
this.thrown.equals("File must not be null");
this.thrown.expectMessage("File must not be null");
new RandomAccessDataFile(null);
}
@Test
public void fileExists() throws Exception {
this.thrown.expect(IllegalArgumentException.class);
this.thrown.equals("File must exist");
this.thrown.expectMessage("File must exist");
new RandomAccessDataFile(new File("/does/not/exist"));
}
@Test
public void fileNotNullWithConcurrentReads() throws Exception {
this.thrown.expect(IllegalArgumentException.class);
this.thrown.equals("File must not be null");
this.thrown.expectMessage("File must not be null");
new RandomAccessDataFile(null, 1);
}
@Test
public void fileExistsWithConcurrentReads() throws Exception {
this.thrown.expect(IllegalArgumentException.class);
this.thrown.equals("File must exist");
this.thrown.expectMessage("File must exist");
new RandomAccessDataFile(new File("/does/not/exist"), 1);
}

Loading…
Cancel
Save