import static org.junit.Assert.assertTrue;
import java.util.Map;
-import java.util.Set;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.opendaylight.yangtools.yang.data.impl.leafref.LeafRefContext;
import org.opendaylight.yangtools.yang.data.impl.leafref.LeafRefContextUtils;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
public class LeafRefContextTest {
- private static SchemaContext context;
+ private static EffectiveModelContext context;
private static Module rootMod;
private static QNameModule root;
private static LeafRefContext rootLeafRefContext;
public static void init() {
context = YangParserTestUtils.parseYangResourceDirectory("/leafref-context-test/correct-modules");
- final Set<Module> modules = context.getModules();
- for (final Module module : modules) {
+ for (final Module module : context.getModules()) {
if (module.getName().equals("leafref-test2")) {
rootMod = module;
}