Commit d8e90af3 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge branch '1.4.x' into 1.5.x

parents 49b8d8c4 595fada2
...@@ -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> </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: and specify:
[source,groovy,indent=0,subs="verbatim,quotes,attributes"] [source,groovy,indent=0,subs="verbatim,quotes,attributes"]
......
...@@ -55,7 +55,7 @@ public class LayoutsTests { ...@@ -55,7 +55,7 @@ public class LayoutsTests {
@Test @Test
public void unknownFile() throws Exception { 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'"); this.thrown.expectMessage("Unable to deduce layout for 'test.txt'");
Layouts.forFile(new File("test.txt")); Layouts.forFile(new File("test.txt"));
} }
......
...@@ -87,28 +87,28 @@ public class RandomAccessDataFileTests { ...@@ -87,28 +87,28 @@ public class RandomAccessDataFileTests {
@Test @Test
public void fileNotNull() throws Exception { public void fileNotNull() throws Exception {
this.thrown.expect(IllegalArgumentException.class); this.thrown.expect(IllegalArgumentException.class);
this.thrown.equals("File must not be null"); this.thrown.expectMessage("File must not be null");
new RandomAccessDataFile(null); new RandomAccessDataFile(null);
} }
@Test @Test
public void fileExists() throws Exception { public void fileExists() throws Exception {
this.thrown.expect(IllegalArgumentException.class); this.thrown.expect(IllegalArgumentException.class);
this.thrown.equals("File must exist"); this.thrown.expectMessage("File must exist");
new RandomAccessDataFile(new File("/does/not/exist")); new RandomAccessDataFile(new File("/does/not/exist"));
} }
@Test @Test
public void fileNotNullWithConcurrentReads() throws Exception { public void fileNotNullWithConcurrentReads() throws Exception {
this.thrown.expect(IllegalArgumentException.class); 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); new RandomAccessDataFile(null, 1);
} }
@Test @Test
public void fileExistsWithConcurrentReads() throws Exception { public void fileExistsWithConcurrentReads() throws Exception {
this.thrown.expect(IllegalArgumentException.class); 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); new RandomAccessDataFile(new File("/does/not/exist"), 1);
} }
......
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