diff --git a/src/test/java/br/unicamp/cst/memorystorage/LogicalTimeTest.java b/src/test/java/br/unicamp/cst/memorystorage/LogicalTimeTest.java new file mode 100644 index 0000000..0392783 --- /dev/null +++ b/src/test/java/br/unicamp/cst/memorystorage/LogicalTimeTest.java @@ -0,0 +1,24 @@ +package br.unicamp.cst.memorystorage; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import org.junit.jupiter.api.Test; + +public class LogicalTimeTest { + + @Test + public void fromStringNotImplementedTest() + { + assertThrows(IllegalStateException.class, () -> LogicalTime.fromString("null")); + } + + @Test + public void synchronizeNotImplementedTest() + { + LamportTime time = new LamportTime(); + + assertThrows(IllegalStateException.class, () -> LogicalTime.synchronize(time, time)); + } + +}