Fix test assertions

Closes gh-8660
This commit is contained in:
dreis
2017-03-18 14:01:39 +01:00
committed by Stephane Nicoll
parent 113279c1bc
commit 1266642aba
2 changed files with 5 additions and 5 deletions

View File

@@ -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"));
}