Package org.sonar.api.issue.internal

Examples of org.sonar.api.issue.internal.IssueChangeContext.login()


  public void test_scan_context() throws Exception {
    Date now = new Date();
    IssueChangeContext context = IssueChangeContext.createScan(now);

    assertThat(context.scan()).isTrue();
    assertThat(context.login()).isNull();
    assertThat(context.date()).isEqualTo(now);
  }

  @Test
  public void test_end_user_context() throws Exception {
View Full Code Here


  public void test_end_user_context() throws Exception {
    Date now = new Date();
    IssueChangeContext context = IssueChangeContext.createUser(now, "emmerik");

    assertThat(context.scan()).isFalse();
    assertThat(context.login()).isEqualTo("emmerik");
    assertThat(context.date()).isEqualTo(now);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.