This is a single-use simple resource, inline it.
Change-Id: I350c0ddaa2233d6821cef6e2b25dac5c267176f1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
private void assertThrowsException(final String uriPath, final String expectedErrorMessage) {
final var ex = assertThrows(RestconfDocumentedException.class,
- () -> parseResource(uriPath, "/instanceidentifier/xml/bug7933.xml"));
+ () -> parse(uriPath, """
+ <cont1 xmlns="instance:identifier:module"/>"""));
final var restconfError = ex.getErrors().get(0);
assertEquals(ErrorType.PROTOCOL, restconfError.getErrorType());
assertEquals(ErrorTag.MALFORMED_MESSAGE, restconfError.getErrorTag());
+++ /dev/null
-<!--
- ~ Copyright (c) 2017 Pantheon Technologies s.r.o. 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
- -->
-
-<cont1 xmlns="instance:identifier:module"/>