use of org.apache.axis2.transport.UtilsTransportServer in project wso2-axis2-transports by wso2.
the class AxisTestEndpointContext method setUp.
@Setup
@SuppressWarnings("unused")
private void setUp(TransportDescriptionFactory tdf, AxisTestEndpointContextConfigurator[] configurators) throws Exception {
server = new UtilsTransportServer();
TransportOutDescription trpOutDesc = tdf.createTransportOutDescription();
trpInDesc = tdf.createTransportInDescription();
server.addTransport(trpInDesc, trpOutDesc);
for (AxisTestEndpointContextConfigurator configurator : configurators) {
configurator.setupTransport(trpInDesc, trpOutDesc);
}
ConfigurationContext cfgCtx = server.getConfigurationContext();
cfgCtx.setContextRoot("/");
cfgCtx.setServicePath("services");
AxisConfiguration axisConfiguration = server.getAxisConfiguration();
server.start();
}
Aggregations