import org.opendaylight.restconf.common.context.NormalizedNodeContext;
import org.opendaylight.restconf.common.errors.RestconfDocumentedException;
import org.opendaylight.restconf.common.errors.RestconfError;
-import org.opendaylight.restconf.common.errors.RestconfError.ErrorTag;
import org.opendaylight.yangtools.util.xml.UntrustedXML;
+import org.opendaylight.yangtools.yang.common.ErrorTag;
import org.opendaylight.yangtools.yang.common.ErrorType;
import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
import org.slf4j.Logger;
}
assertEquals("error-type", expErrorType.elementBody(), leafMap.remove("error-type"));
- assertEquals("error-tag", expErrorTag.getTagValue(), leafMap.remove("error-tag"));
+ assertEquals("error-tag", expErrorTag.elementBody(), leafMap.remove("error-tag"));
verifyOptionalJsonLeaf(leafMap.remove("error-message"), expErrorMessage, "error-message");
verifyOptionalJsonLeaf(leafMap.remove("error-app-tag"), expErrorAppTag, "error-app-tag");
assertEquals("error-type", expErrorType.elementBody(), errorType);
final String errorTag = (String) ERROR_TAG.evaluate(errorNode, XPathConstants.STRING);
- assertEquals("error-tag", expErrorTag.getTagValue(), errorTag);
+ assertEquals("error-tag", expErrorTag.elementBody(), errorTag);
verifyOptionalXMLLeaf(errorNode, ERROR_MESSAGE, expErrorMessage, "error-message");
verifyOptionalXMLLeaf(errorNode, ERROR_APP_TAG, expErrorAppTag, "error-app-tag");