public static void main(String[] args) throws FailingHttpStatusCodeException,
MalformedURLException,
IOException {
WebClient wc = IntegrationUtils.startWebClient();
Page page = wc.getPage(url("/util/IntegrationTests.action?flushCobertura="));
String outputFileName = System.getProperty("com.googlecode.memwords.test.web.integration.datafile");
if (outputFileName == null) {
outputFileName = "cobertura/report/cobertura-integration.ser";
}
BufferedOutputStream out = null;
try {
out = new BufferedOutputStream(new FileOutputStream(new File(outputFileName)));
out.write(page.getWebResponse().getContentAsBytes());
}
finally {
try {
out.close();
}