Move case statement implementations
[yangtools.git] / yang / yang-data-api / src / test / java / org / opendaylight / yangtools / yang / data / api / schema / tree / spi / 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.api.schema.tree.spi;
9
10 import static org.junit.Assert.assertFalse;
11
12 import org.junit.Test;
13
14 public class VersionTest {
15
16     @Test
17     public void testInitial() {
18         final Version v1 = Version.initial();
19         final Version v2 = Version.initial();
20
21         assertFalse(v1.equals(v2));
22         assertFalse(v2.equals(v1));
23     }
24
25     @Test
26     public void testNext() {
27         final Version v1 = Version.initial();
28         final Version v2 = v1.next();
29         final Version v3 = v2.next();
30         final Version v4 = v1.next();
31
32         assertFalse(v3.equals(v4));
33         assertFalse(v4.equals(v3));
34     }
35 }