Package org.apache.synapse.unittest
Class TestCasesMediator
- java.lang.Object
-
- org.apache.synapse.unittest.TestCasesMediator
-
public class TestCasesMediator extends Object
Class is responsible for mediating incoming payload with relevant configuration.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.axiom.om.OMElement
createOMElement(String xml)
Creating OMElement for payload.static void
setBody(org.apache.http.client.methods.HttpEntityEnclosingRequestBase request, TestCase currentTestCase)
Set a payload to Entity Enclosing Request.
-
-
-
Method Detail
-
setBody
public static void setBody(org.apache.http.client.methods.HttpEntityEnclosingRequestBase request, TestCase currentTestCase)
Set a payload to Entity Enclosing Request.- Parameters:
request
- HttpEntityEnclosingRequestBasecurrentTestCase
- current test case
-
createOMElement
public static org.apache.axiom.om.OMElement createOMElement(String xml)
Creating OMElement for payload.- Parameters:
xml
- input payload- Returns:
- payload in OMElement type
-
-