Skip to content

Commit

Permalink
fix test order
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneberly committed Dec 19, 2015
1 parent 5758bdf commit 47aff4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/com/cflint/TestUnusedLocalVarChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static org.junit.Assert.assertEquals;

import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -143,6 +144,7 @@ public void testMultipleUnusedVarFunctionInScript() throws ParseException, IOExc
cfBugs.process(scriptSrc, "test");
final List<BugInfo> result = cfBugs.getBugs().getBugList().get("UNUSED_LOCAL_VARIABLE");
assertEquals(3, result.size());
Collections.sort(result);
assertEquals("UNUSED_LOCAL_VARIABLE", result.get(0).getMessageCode());
assertEquals(6, result.get(0).getLine());
assertEquals("UNUSED_LOCAL_VARIABLE", result.get(1).getMessageCode());
Expand Down

0 comments on commit 47aff4f

Please sign in to comment.