* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.controller.netconf.util.xml;
+package org.opendaylight.controller.config.util.xml;
import static org.hamcrest.CoreMatchers.both;
import static org.hamcrest.CoreMatchers.containsString;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
-import org.opendaylight.controller.netconf.api.NetconfDocumentedException;
-import org.opendaylight.controller.netconf.util.exception.MissingNameSpaceException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
try {
XmlElement.fromString("notXml");
fail();
- } catch (final NetconfDocumentedException e) {}
+ } catch (final DocumentedException e) {}
try {
XmlElement.fromDomElementWithExpected(element, "notTop");
fail();
- } catch (final NetconfDocumentedException e) {}
+ } catch (final DocumentedException e) {}
try {
XmlElement.fromDomElementWithExpected(element, "top", "notNamespace");
fail();
- } catch (final NetconfDocumentedException e) {}
+ } catch (final DocumentedException e) {}
}
@Test
try {
xmlElement.checkUnrecognisedElements(xmlElement.getOnlyChildElement("inner"));
fail();
- } catch (final NetconfDocumentedException e) {
+ } catch (final DocumentedException e) {
assertThat(e.getMessage(), both(containsString("innerNamespace")).and(containsString("innerNamespace")));
}
}