From 4ab40a8edb63bcaa107dd8b830c1a38b8ceedff6 Mon Sep 17 00:00:00 2001 From: binsky Date: Wed, 26 Jan 2022 09:45:31 +0100 Subject: [PATCH] add basic storage class and interface --- src/main/java/Storage.java | 11 +++++++++++ src/main/java/StorageInterface.java | 4 ++++ src/test/java/StorageTest.java | 19 +++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 src/main/java/Storage.java create mode 100644 src/main/java/StorageInterface.java create mode 100644 src/test/java/StorageTest.java diff --git a/src/main/java/Storage.java b/src/main/java/Storage.java new file mode 100644 index 0000000..104ed41 --- /dev/null +++ b/src/main/java/Storage.java @@ -0,0 +1,11 @@ +public class Storage implements StorageInterface{ + @Override + public void export() { + + } + + @Override + public void load() { + + } +} diff --git a/src/main/java/StorageInterface.java b/src/main/java/StorageInterface.java new file mode 100644 index 0000000..796d12b --- /dev/null +++ b/src/main/java/StorageInterface.java @@ -0,0 +1,4 @@ +public interface StorageInterface { + public void export(); + public void load(); +} diff --git a/src/test/java/StorageTest.java b/src/test/java/StorageTest.java new file mode 100644 index 0000000..1d67ee7 --- /dev/null +++ b/src/test/java/StorageTest.java @@ -0,0 +1,19 @@ +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class StorageTest { + + @Test + void constructor() { + assertInstanceOf(Storage.class, new Storage()); + } + + @Test + void export() { + } + + @Test + void load() { + } +} \ No newline at end of file