mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 00:38:16 +00:00
[BUGFIX] Added throwable to method, instead of catching
This commit is contained in:
@@ -13,8 +13,7 @@ import java.io.IOException;
|
|||||||
public class CacheValidationTest {
|
public class CacheValidationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test(){
|
public void test() throws IOException {
|
||||||
try {
|
|
||||||
File fileOne = new File(Directories.getCachePath(), "should-exist.tmp");
|
File fileOne = new File(Directories.getCachePath(), "should-exist.tmp");
|
||||||
File fileTwo = new File(Directories.getCachePath(), "should-not-exist.tmp");
|
File fileTwo = new File(Directories.getCachePath(), "should-not-exist.tmp");
|
||||||
|
|
||||||
@@ -27,8 +26,5 @@ public class CacheValidationTest {
|
|||||||
|
|
||||||
Assert.assertTrue(fileOne.exists());
|
Assert.assertTrue(fileOne.exists());
|
||||||
Assert.assertTrue(!fileTwo.exists());
|
Assert.assertTrue(!fileTwo.exists());
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user