2 * Copyright (c) 2016 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.stmt;
10 import static org.junit.jupiter.api.Assertions.assertEquals;
11 import static org.junit.jupiter.api.Assertions.assertFalse;
12 import static org.junit.jupiter.api.Assertions.assertTrue;
14 import org.junit.jupiter.api.Test;
15 import org.opendaylight.yangtools.yang.common.Revision;
17 class TwoRevisionsTest extends AbstractYangTest {
19 void testTwoRevisions() {
20 var it = assertEffectiveModelDir("/ietf").findModuleStatements("network-topology").iterator();
21 assertTrue(it.hasNext());
22 assertEquals(Revision.of("2013-10-21"), it.next().localQNameModule().revision());
23 assertTrue(it.hasNext());
24 assertEquals(Revision.of("2013-07-12"), it.next().localQNameModule().revision());
25 assertFalse(it.hasNext());