mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 08:59:01 +00:00
Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.
This commit is contained in:
@@ -65,11 +65,11 @@ public class SimpleFileWriterTest {
|
||||
* Verify if an {@link IOException} during the write ripples through
|
||||
*/
|
||||
@Test(expected = IOException.class)
|
||||
public void testIOException() throws Exception {
|
||||
public void testIoException() throws Exception {
|
||||
final File temporaryFile = this.testFolder.newFile();
|
||||
new SimpleFileWriter(temporaryFile.getPath(), writer -> {
|
||||
throw new IOException("");
|
||||
});
|
||||
throw new IOException("");
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user