@@ -0,0 +1,1466 @@
+package com.cflint;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.io.FileInputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.StringWriter;%0Aimport java.io.Writer;%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport com.fasterxml.jackson.core.JsonParseException;%0Aimport com.fasterxml.jackson.databind.JsonMappingException;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0Aimport com.fasterxml.jackson.databind.type.TypeFactory;%0A%0Apublic class TestXMLOutput %7B%0A%0A%09private XMLOutput outputer;%0A%09private BugList bugList;%0A%09private Writer writer;%0A%09@Before%0A%09public void setUp()%7B%0A%09%09outputer = new XMLOutput();%0A%09%09bugList = new BugList(null);%0A%09%09writer = new StringWriter();%0A%09%7D%0A%09@Test%0A%09public void testOutput() throws IOException %7B%0A%09%09BugInfo bugInfo = new BugInfo.BugInfoBuilder().setFunction(%22testf%22).setMessageCode(%22PARSE_ERROR%22).setFilename(%22c:%5C%5Ctemp%5C%5Ctest.cfc%22).build();%0A%09%09bugList.add(bugInfo);%0A%09%09outputer.output(bugList, writer);%0A%09%09String expectedText = %22%3Cissues version=%5C%22%5C%22%3E%5Cn%22 +%0A%22%3Cissue severity=%5C%22%5C%22 id=%5C%22PARSE_ERROR%5C%22 message=%5C%22PARSE_ERROR%5C%22 category=%5C%22CFLint%5C%22 abbrev=%5C%22PE%5C%22%3E%3Clocation file=%5C%22c:%5C%5Ctemp%5C%5Ctest.cfc%5C%22 fileName=%5C%22test.cfc%5C%22 function=%5C%22testf%5C%22 column=%5C%220%5C%22 line=%5C%220%5C%22 message=%5C%22%5C%22 variable=%5C%22%5C%22%3E%3CExpression%3E%3C!%5BCDATA%5B%5D%5D%3E%3C/Expression%3E%3C/location%3E%5Cn%22 +%0A%22%3C/issue%3E%5Cn%22 +%0A%22%3C/issues%3E%22;%0A%09%09assertEquals(expectedText,writer.toString());%0A%09%7D%0A%09%0A%7D%0A

add test for XML output