Package org.sonar.api.issue

Examples of org.sonar.api.issue.IssueHandler


import static org.mockito.Mockito.*;

public class IssueHandlersTest {
  @Test
  public void should_execute_handlers() throws Exception {
    IssueHandler h1 = mock(IssueHandler.class);
    IssueHandler h2 = mock(IssueHandler.class);
    IssueUpdater updater = mock(IssueUpdater.class);

    IssueHandlers handlers = new IssueHandlers(updater, new IssueHandler[]{h1, h2});
    final DefaultIssue issue = new DefaultIssue();
    handlers.execute(issue, IssueChangeContext.createScan(new Date()));
View Full Code Here

TOP

Related Classes of org.sonar.api.issue.IssueHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.