+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. 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.controller.sal.connector.remoterpc;
import org.junit.Test;
@Test
public void toXml() throws FileNotFoundException {
- InputStream xmlStream = SerilizationTest.class.getResourceAsStream("/FourSimpleChildren.xml");
+ //InputStream xmlStream = SerilizationTest.class.getResourceAsStream("/FourSimpleChildren.xml");
+ InputStream xmlStream = SerilizationTest.class.getResourceAsStream("/AddFlow.xml");
StringWriter writer = new StringWriter();
CompositeNode data = loadCompositeNode(xmlStream);
_logger.info("Parsed xml [{}]", writer.toString());
}
- //Note to self: Stolen from TestUtils
- ///Users/alefan/odl/controller4/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/TestUtils.java
// Figure out how to include TestUtils through pom ...was getting errors
private CompositeNode loadCompositeNode(InputStream xmlInputStream) throws FileNotFoundException {
if (xmlInputStream == null) {