[prev in list] [next in list] [prev in thread] [next in thread] 

List:       esb-java-dev
Subject:    [Dev] How to mock Synapse Message Context
From:       Rushmin Fernando <rushmin () wso2 ! com>
Date:       2014-12-26 23:54:31
Message-ID: CAFCz+p-UxCRAB6a0VuBQKEYFunmNyCEmJHDbViAHfseddnSp1w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I'm working on an ESB API handler. Inside the handler I call the 'sendBack'
method of AxisEngine.

In the test case, it gives a NPE since the mock message context doesn't
have sufficient info for the sendBack method.

Is there any standard way of creating a mock message context which wouldn't
fail during the message processing/sending ?

Thanks
Rushmin

-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware

email : rushmin@wso2.com
mobile : +94772310855

[Attachment #5 (text/html)]

<div dir="ltr">I&#39;m working on an ESB API handler. Inside the handler I call the \
&#39;sendBack&#39; method of AxisEngine.<div><br></div><div>In the test case, it \
gives a NPE since the mock message context doesn&#39;t have sufficient info for the \
sendBack method.</div><div><br></div><div>Is there any standard way of creating a \
mock message context which wouldn&#39;t fail during the message processing/sending \
?</div><div><br></div><div>Thanks</div><div>Rushmin<br clear="all"><div><br></div>-- \
<br><div class="gmail_signature"><div dir="ltr"><i><font color="#999999">Rushmin \
Fernando</font></i><div><i><font color="#999999">Technical \
Lead</font></i></div><div><br></div><div><a href="http://wso2.com/" \
target="_blank">WSO2 Inc.</a>  - Lean . Enterprise . Middleware  \
<br></div><div><br></div><div>email : <a href="mailto:rushmin@wso2.com" \
target="_blank">rushmin@wso2.com</a></div><div>mobile : \
+94772310855<br></div><div><br></div><div><br></div></div></div> </div></div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic