Package com.coherentlogic.wb.client.core.domain

Examples of com.coherentlogic.wb.client.core.domain.ErrorMessage


    @Test(expected=InvalidRequestException.class)
    public void testUnmarshalExpectingException ()
        throws XmlMappingException, IOException {

        ErrorMessage errorMessage = new ErrorMessage ();

        Message message = new Message ();

        message.setKey(KEY);
//        message.setId(ID);
        message.setValue(VALUE);

        errorMessage.setMessage(message);

        Source source = mock (StreamSource.class);

        when (
            parentMarshaller.unmarshal(source)
View Full Code Here


        Object result = parentMarshaller.unmarshal(source);

        if (result instanceof ErrorMessage) {

            ErrorMessage errorMessage = (ErrorMessage) result;

            Message message = errorMessage.getMessage();

            throw new InvalidRequestException(message);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of com.coherentlogic.wb.client.core.domain.ErrorMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.