nl.hsac.fitnesse.sample.GetWeatherFixture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hsac-fitnesse-fixtures Show documentation
Show all versions of hsac-fitnesse-fixtures Show documentation
Fixtures to assist in testing via FitNesse
package nl.hsac.fitnesse.sample;
import nl.hsac.fitnesse.fixture.fit.SoapCallMapColumnFixture;
import nl.hsac.fitnesse.fixture.util.XmlHttpResponse;
public class GetWeatherFixture extends SoapCallMapColumnFixture {
static {
registerNs("wsX", "http://www.webserviceX.NET");
}
/**
* Creates new.
*/
public GetWeatherFixture() {
super(XmlHttpResponse.class);
setTemplateName("samplePost.ftl.xml");
}
@Override
protected XmlHttpResponse callService() {
return callServiceImpl("weatherUrl", "http://www.webserviceX.NET/GetWeather");
}
public String weatherResult() {
String result = getRawResponse().getXPath("//wsX:GetWeatherResult/text()");
return xmlAsHtml(result);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy