Migrate yang-data-tree-ri to JUnit5
[yangtools.git] / data / yang-data-tree-ri / src / test / java / org / opendaylight / yangtools / yang / data / tree / impl / node / VersionTest.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.data.tree.impl.node;
9
10 import static org.junit.jupiter.api.Assertions.assertNotEquals;
11
12 import org.junit.jupiter.api.Test;
13
14 class VersionTest {
15
16     @Test
17     void testInitial() {
18         final var v1 = Version.initial();
19         final var v2 = Version.initial();
20
21         assertNotEquals(v1, v2);
22         assertNotEquals(v2, v1);
23     }
24
25     @Test
26     void testNext() {
27         final var v1 = Version.initial();
28         final var v2 = v1.next();
29         final var v3 = v2.next();
30         final var v4 = v1.next();
31
32         assertNotEquals(v3, v4);
33         assertNotEquals(v4, v3);
34     }
35 }