Remove io.atomix.utils.tim
[controller.git] / third-party / atomix / utils / src / test / java / io / atomix / utils / time / LogicalClockTest.java
diff --git a/third-party/atomix/utils/src/test/java/io/atomix/utils/time/LogicalClockTest.java b/third-party/atomix/utils/src/test/java/io/atomix/utils/time/LogicalClockTest.java
deleted file mode 100644 (file)
index b2bf195..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright 2017-present Open Networking Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package io.atomix.utils.time;
-
-import org.junit.Test;
-
-import static org.junit.Assert.assertEquals;
-
-/**
- * Logical clock test.
- */
-public class LogicalClockTest {
-  @Test
-  public void testLogicalClock() throws Exception {
-    LogicalClock clock = new LogicalClock();
-    assertEquals(1, clock.increment().value());
-    assertEquals(1, clock.getTime().value());
-    assertEquals(2, clock.increment().value());
-    assertEquals(2, clock.getTime().value());
-    assertEquals(5, clock.update(LogicalTimestamp.of(5)).value());
-    assertEquals(5, clock.getTime().value());
-    assertEquals(5, clock.update(LogicalTimestamp.of(3)).value());
-  }
-}