use of com.evolveum.midpoint.xml.ns._public.common.api_types_3.ExecuteCredentialResetResponseType in project midpoint by Evolveum.
the class TestPrismSerialization method testSerializeExecuteCredentialResetResponseType.
@Test
public void testSerializeExecuteCredentialResetResponseType() throws Exception {
PrismContext prismContext = getPrismContext();
SingleLocalizableMessage localizableMessage = new SingleLocalizableMessage("execute.reset.credential.bad.request", null, "Failed to execute reset password. Bad request.");
LocalizableMessageType localizableMessageBean = LocalizationUtil.createLocalizableMessageType(localizableMessage);
ExecuteCredentialResetResponseType response = new ExecuteCredentialResetResponseType();
response.setMessage(localizableMessageBean);
QName fakeQName = new QName(PrismConstants.NS_TYPES, "object");
prismContext.adopt(response);
String xml = prismContext.xmlSerializer().serializeAnyData(response, fakeQName);
System.out.println(xml);
}
Aggregations