Skip to content

Commit

Permalink
Test LogicalTime static members
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonCN committed Dec 11, 2024
1 parent 3606ce2 commit e857da3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/test/java/br/unicamp/cst/memorystorage/LogicalTimeTest.java
Original file line number Diff line number Diff line change
@@ -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));
}

}

0 comments on commit e857da3

Please sign in to comment.