use of org.apache.synapse.mediators.MediatorProperty in project wso2-synapse by wso2.
the class PropertyMediatorTest method testMediatorPropertiesLiteral.
/**
* property being searched does not exist in context, and lookup should go up into the config
* @throws Exception
*/
/*TODO ACP public void testSetAndReadGlobalProperty() throws Exception {
MessageContext synCtx = TestUtils.getTestContext("<empty/>");
SynapseConfiguration synCfg = new SynapseConfiguration();
Entry prop = new Entry();
prop.setKey("name");
prop.setType(Entry.VALUE_TYPE);
prop.setValue("value");
synCfg.addEntry("name", prop);
synCtx.setConfiguration(synCfg);
assertTrue(
"value".equals(Axis2MessageContext.getStringValue(
new SynapseXPath("synapse:get-property('name')"), synCtx)));
}*/
public void testMediatorPropertiesLiteral() throws Exception {
MediatorProperty medProp = new MediatorProperty();
medProp.setName("name");
medProp.setValue("value");
assertTrue("value".equals(medProp.getValue()));
}
Aggregations