/* * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.restconf.common; import static org.junit.Assert.assertEquals; import org.junit.BeforeClass; import org.junit.Test; import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext; import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils; public class Netconf822Test { private static EffectiveModelContext CONTEXT; @BeforeClass public static void beforeClass() { CONTEXT = YangParserTestUtils.parseYangResourceDirectory("/nc822"); } @Test public void testOperationsContentJSON() { assertEquals("{\n" + " \"ietf-restconf:operations\" : {\n" + " \"foo:new\": [null]\n" + " }\n" + "}", OperationsContent.JSON.bodyFor(CONTEXT)); } @Test public void testOperationsContentXML() { assertEquals("\n" + "\n" + " \n" + "", OperationsContent.XML.bodyFor(CONTEXT)); } }