CustomIssueRegistry extends IssueRegistry { @Override public List<Issue> getIssues() { return Arrays.asList( HelloWorldDetector.ISSUE, IdPrefixDetector.ISSUE, StringReferencesDetector.ISSUE, ClassNamesDetector.ISSUE, LayoutNamesDetector.ISSUE ); }  @Override List<Issue> getIssues();  }
@Test public void testGetIssues() throws Exception { CustomIssueRegistry customIssueRegistry = new CustomIssueRegistry(); List<Issue> actual = customIssueRegistry.getIssues(); assertThat(actual).containsExactly( HelloWorldDetector.ISSUE, IdPrefixDetector.ISSUE, StringReferencesDetector.ISSUE, ClassNamesDetector.ISSUE, LayoutNamesDetector.ISSUE ); }