import static org.junit.Assert.fail;
import com.google.common.collect.ImmutableMap;
-import java.io.File;
import java.net.URI;
import java.util.Optional;
import org.junit.Before;
import org.junit.Test;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.common.QNameModule;
-import org.opendaylight.yangtools.yang.common.SimpleDateFormatUtil;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
private QName childOrdinaryLeaf;
@Before
- public void setup() throws Exception {
- final File resourceFile = new File(Bug4295Test.class.getResource("/ordered-list-modification-test.yang")
- .toURI());
- context = YangParserTestUtils.parseYangFiles(resourceFile);
- testModule = QNameModule.create(new URI("ordered-list-modification-test"),
- SimpleDateFormatUtil.getRevisionFormat().parse("1970-01-01"));
+ public void setup() {
+ context = YangParserTestUtils.parseYangResource("/ordered-list-modification-test.yang");
+ testModule = QNameModule.create(URI.create("ordered-list-modification-test"), null);
parentContainer = QName.create(testModule, "parent-container");
childContainer = QName.create(testModule, "child-container");
parentOrderedList = QName.create(testModule, "parent-ordered-list");