Skip to content

Commit

Permalink
finish test #62
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneberly committed Jun 16, 2015
1 parent 35807ca commit 098c9dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/com/cflint/TestJSONOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void testOutput1() throws IOException {
BugInfo bugInfo = new BugInfo.BugInfoBuilder().setFunction("testf").setMessageCode("PARSE_ERROR").setFilename("c:\\temp\\test.cfc").build();
bugList.add(bugInfo);
outputer.output(bugList, writer);
assertEquals("[]",writer.toString());
assertEquals("[{\"severity\":\"\",\"locations\":[{\"fileName\":\"test.cfc\",\"file\":\"c:\\\\temp\\\\test.cfc\",\"expression\":\"\",\"line\":\"0\",\"column\":\"0\",\"variable\":\"\",\"message\":\"\"}],\"id\":\"PARSE_ERROR\",\"abbrev\":\"PE\",\"message\":\"PARSE_ERROR\",\"category\":\"CFLINT\"}]",
writer.toString());
}
}

0 comments on commit 098c9dd

Please sign in to comment.