diff options
author | Keuin <[email protected]> | 2021-01-12 15:03:23 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2021-01-12 15:03:23 +0800 |
commit | 4a52f5e6ce06cb6717510c6a975d5490be627c98 (patch) | |
tree | 8fe3602acbaaf74e6946d8a970e84f7a3394c106 /src/test/java/com/keuin/kbackupfabric/util/backup/incremental/identifier | |
parent | afd26cdd12fef4bd2aafa2ac8d708e18d277a2fe (diff) |
Add unit test for Sha256Identifier and ObjectCollection
Diffstat (limited to 'src/test/java/com/keuin/kbackupfabric/util/backup/incremental/identifier')
-rw-r--r-- | src/test/java/com/keuin/kbackupfabric/util/backup/incremental/identifier/Sha256IdentifierTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/com/keuin/kbackupfabric/util/backup/incremental/identifier/Sha256IdentifierTest.java b/src/test/java/com/keuin/kbackupfabric/util/backup/incremental/identifier/Sha256IdentifierTest.java index 2296e01..53e92e2 100644 --- a/src/test/java/com/keuin/kbackupfabric/util/backup/incremental/identifier/Sha256IdentifierTest.java +++ b/src/test/java/com/keuin/kbackupfabric/util/backup/incremental/identifier/Sha256IdentifierTest.java @@ -6,17 +6,19 @@ import java.io.File; import java.io.IOException; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; public class Sha256IdentifierTest { @Test public void fromFile() { try { - Sha256Identifier sha256 = Sha256Identifier.fromFile(new File("./src/test/sha256")); + Sha256Identifier sha256 = Sha256Identifier.fromFile(new File("./testfile/Sha256IdentifierTest")); String str = sha256.getIdentification().toUpperCase(); assertEquals("315F5BDB76D078C43B8AC0064E4A0164612B1FCE77C869345BFC94C75894EDD3", str); } catch (IOException e) { e.printStackTrace(); + fail(); } } |