Migrate test asserts
[yangtools.git] / yang / yang-maven-plugin / src / test / java / org / opendaylight / yangtools / yang2sources / plugin / UtilTest.java
1 /*
2  * Copyright (c) 2013 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.yang2sources.plugin;
9
10 import static org.junit.Assert.assertTrue;
11
12 import java.io.File;
13 import java.util.Collection;
14
15 import org.junit.Test;
16
17 public class UtilTest {
18
19     @Test
20     public void testCache() throws Exception {
21         String yang = new File(getClass().getResource("/yang/mock.yang").toURI()).getParent();
22         Collection<File> files = Util.listFiles(new File(yang));
23         Collection<File> files2 = Util.listFiles(new File(yang));
24         assertTrue(files == files2);
25     }
26
27 }