Add missing copyright text
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / java / org / opendaylight / controller / sal / restconf / impl / cnsn / to / json / test / CnSnToJsonLeafrefType.java
1 /*
2  * Copyright (c) 2014 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.controller.sal.restconf.impl.cnsn.to.json.test;
9
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;
16
17 /**
18  *
19  * All tests are commented now because leafref isn't supported now
20  *
21  */
22
23 public class CnSnToJsonLeafrefType extends YangAndXmlAndDataSchemaLoader {
24
25     @BeforeClass
26     public static void initialization() {
27         dataLoad("/cnsn-to-json/leafref", 2, "main-module", "cont");
28     }
29
30     private void validateJson(final String regex, final String value) {
31         assertNotNull(value);
32         final Pattern ptrn = Pattern.compile(regex, Pattern.DOTALL);
33         final Matcher mtch = ptrn.matcher(value);
34         assertTrue(mtch.matches());
35     }
36
37 }