|
|
@ -1,12 +1,20 @@ |
|
|
|
import org.junit.jupiter.api.BeforeAll; |
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
class StorageTest { |
|
|
|
|
|
|
|
static Storage storage; |
|
|
|
|
|
|
|
@BeforeAll |
|
|
|
static void init() { |
|
|
|
storage = new Storage(); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void constructor() { |
|
|
|
assertInstanceOf(Storage.class, new Storage()); |
|
|
|
assertInstanceOf(Storage.class, storage); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
@ -16,4 +24,9 @@ class StorageTest { |
|
|
|
@Test |
|
|
|
void load() { |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void writeFile() { |
|
|
|
assertTrue(storage.writeFile("/tmp/test.txt", "test")); |
|
|
|
} |
|
|
|
} |