2 * Copyright (c) 2014 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.controller.sal.restconf.impl.cnsn.to.json.test;
10 import static org.junit.Assert.assertNotNull;
11 import static org.junit.Assert.assertTrue;
12 import java.util.regex.Matcher;
13 import java.util.regex.Pattern;
14 import org.junit.BeforeClass;
15 import org.opendaylight.controller.sal.restconf.impl.test.YangAndXmlAndDataSchemaLoader;
19 * All tests are commented now because leafref isn't supported now
23 public class CnSnToJsonLeafrefType extends YangAndXmlAndDataSchemaLoader {
26 public static void initialization() {
27 dataLoad("/cnsn-to-json/leafref", 2, "main-module", "cont");
30 private void validateJson(final String regex, final String value) {
32 final Pattern ptrn = Pattern.compile(regex, Pattern.DOTALL);
33 final Matcher mtch = ptrn.matcher(value);
34 assertTrue(mtch.matches());