Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Reuse schemaContext in mdsal-netconf-connector tests
[netconf.git]
/
netconf
/
mdsal-netconf-connector
/
src
/
test
/
java
/
org
/
opendaylight
/
netconf
/
mdsal
/
connector
/
ops
/
CopyConfigTest.java
diff --git
a/netconf/mdsal-netconf-connector/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/CopyConfigTest.java
b/netconf/mdsal-netconf-connector/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/CopyConfigTest.java
index 3a34ccd24c36927b87b6dff236fdab68473713ed..0b336adc1860f6332e877e6057fd70c5599b4d08 100644
(file)
--- a/
netconf/mdsal-netconf-connector/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/CopyConfigTest.java
+++ b/
netconf/mdsal-netconf-connector/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/CopyConfigTest.java
@@
-5,12
+5,10
@@
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* 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.netconf.mdsal.connector.ops;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
package org.opendaylight.netconf.mdsal.connector.ops;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import static org.opendaylight.yangtools.yang.test.util.YangParserTestUtils.parseYangResources;
import java.io.File;
import java.io.FileInputStream;
import java.io.File;
import java.io.FileInputStream;
@@
-25,7
+23,6
@@
import org.opendaylight.netconf.api.DocumentedException.ErrorTag;
import org.opendaylight.netconf.api.DocumentedException.ErrorType;
import org.opendaylight.netconf.api.xml.XmlUtil;
import org.opendaylight.netconf.util.test.XmlFileLoader;
import org.opendaylight.netconf.api.DocumentedException.ErrorType;
import org.opendaylight.netconf.api.xml.XmlUtil;
import org.opendaylight.netconf.util.test.XmlFileLoader;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
@@
-33,13
+30,6
@@
public class CopyConfigTest extends AbstractNetconfOperationTest {
@Rule
public TemporaryFolder tmpDir = new TemporaryFolder();
@Rule
public TemporaryFolder tmpDir = new TemporaryFolder();
- @Override
- protected SchemaContext getSchemaContext() {
- return parseYangResources(CopyConfigTest.class,
- "/yang/mdsal-netconf-mapping-test.yang");
- }
-
-
@Test
public void testTargetMissing() throws Exception {
try {
@Test
public void testTargetMissing() throws Exception {
try {