MTIssueRegistry extends IssueRegistry { @Override public synchronized List<Issue> getIssues() { System.out.println("==== MT lint start ===="); return Arrays.asList( LogDetector.ISSUE, HashMapForJDK7Detector.ISSUE ); }  @Override synchronized List<Issue> getIssues();  }
@Test public void testNumberOfIssues() throws Exception { int size = mtIssueRegistry.getIssues().size(); assertThat(size).isEqualTo(2); }
@Test public void testGetIssues() throws Exception { List<Issue> actual = mtIssueRegistry.getIssues(); assertThat(actual).contains(LogDetector.ISSUE); assertThat(actual).contains(HashMapForJDK7Detector.ISSUE); }