2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.data.api.schema.tree.spi;
10 import static org.junit.Assert.assertFalse;
12 import org.junit.Test;
14 public class VersionTest {
17 public void testInitial() {
18 final Version v1 = Version.initial();
19 final Version v2 = Version.initial();
21 assertFalse(v1.equals(v2));
22 assertFalse(v2.equals(v1));
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();
32 assertFalse(v3.equals(v4));
33 assertFalse(v4.equals(v3));