output.createNewFile();
serializer.serialize(result, new FileOutputStream(output));
}
public void test_aggregatorSmokeTest() throws IOException, TransformerException, ParserConfigurationException {
JunitresultAggregator aggregator = new JunitresultAggregator();
File root = null;
try {
root = TestDataProvider.getTestFile(new Path("testData/test_results"));
root.mkdir();
FileUtils.unzip(TestDataProvider.getTestFile(new Path("testData/test_results.zip")), root);
JunitResult result = aggregator.aggregate(root, root);
assertTrue(result instanceof Testsuites);
Testsuites testsuite = (Testsuites) result;
assertEquals("test_results", testsuite.getName());
assertEquals(3, testsuite.getErrors());
assertEquals(1360, testsuite.getTests());