Package org.sonar.core.issue

Examples of org.sonar.core.issue.IssueUpdater


  IssueUpdater updater;

  @Before
  public void setUp() throws Exception {
    updater = new IssueUpdater();
  }
View Full Code Here


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

    }));
  }

  @Test
  public void test_no_handlers() {
    IssueUpdater updater = mock(IssueUpdater.class);
    IssueHandlers handlers = new IssueHandlers(updater);
    handlers.execute(new DefaultIssue(), IssueChangeContext.createScan(new Date()));
    verifyZeroInteractions(updater);
  }
View Full Code Here

TOP

Related Classes of org.sonar.core.issue.IssueUpdater

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.