Adds additional test to the load function.
@@ -2,6 +2,7 @@ package com.valkryst.VTerminal.misc;
import org.junit.Test;
+import java.io.File;
import java.io.IOException;
public class REXPaintLoaderTest {
@@ -9,4 +10,9 @@ public class REXPaintLoaderTest {
public void testLoad_withNullFile() throws IOException {
REXPaintLoader.load(null);
}
+
+ @Test(expected=IOException.class)
+ public void testLoad_withNonExistantFile() throws IOException {
+ REXPaintLoader.load(new File("dfgjsdkjfghokfh"));
+ }
}
