forked from Chat_things/NeuroDock
Updated build.gradle to now include some Unit tests
Started implumenting Unit Tests
This commit is contained in:
13
Core/src/test/java/FileTest.java
Normal file
13
Core/src/test/java/FileTest.java
Normal file
@@ -0,0 +1,13 @@
|
||||
import me.zacharias.chat.core.files.FileHandler;
|
||||
import me.zacharias.chat.core.files.FileHandlerException;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class FileTest {
|
||||
@Test
|
||||
void TestError()
|
||||
{
|
||||
FileHandler fileHandler = new FileHandler("./test/files");
|
||||
Assertions.assertThrowsExactly(FileHandlerException.class, () -> fileHandler.readFile("../build.gradle"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user