Tabnine Logo
IssueFieldsSetter.setPastMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
setPastMessage
method
in
org.sonar.server.issue.IssueFieldsSetter

Best Java code snippets using org.sonar.server.issue.IssueFieldsSetter.setPastMessage (Showing top 5 results out of 315)

origin: SonarSource/sonarqube

@Test
public void set_past_message() {
 issue.setMessage("new message");
 boolean updated = underTest.setPastMessage(issue, "past message", context);
 assertThat(updated).isTrue();
 assertThat(issue.message()).isEqualTo("new message");
 // do not save change
 assertThat(issue.currentChange()).isNull();
 assertThat(issue.mustSendNotifications()).isFalse();
}
origin: SonarSource/sonarqube

verify(updater).setPastSeverity(raw, BLOCKER, issueChangeContext);
verify(updater).setPastLine(raw, 10);
verify(updater).setPastMessage(raw, "message", issueChangeContext);
verify(updater).setPastEffort(raw, Duration.create(15L), issueChangeContext);
verify(updater).setPastLocations(raw, issueLocations);
origin: SonarSource/sonarqube

verify(updater).setPastMessage(raw, "message", issueChangeContext);
verify(updater).setPastEffort(raw, Duration.create(15L), issueChangeContext);
verify(updater).setPastLocations(raw, issueLocations);
origin: SonarSource/sonarqube

updater.setPastMessage(raw, base.getMessage(), changeContext);
updater.setPastGap(raw, base.gap(), changeContext);
updater.setPastEffort(raw, base.effort(), changeContext);
origin: org.sonarsource.sonarqube/sonar-server

public void mergeExistingOpenIssue(DefaultIssue raw, DefaultIssue base) {
 raw.setKey(base.key());
 raw.setNew(false);
 copyFields(raw, base);
 if (base.manualSeverity()) {
  raw.setManualSeverity(true);
  raw.setSeverity(base.severity());
 } else {
  updater.setPastSeverity(raw, base.severity(), changeContext);
 }
 // set component/module related fields from base in case current component has been moved
 // (in which case base issue belongs to original file and raw issue to component)
 raw.setComponentUuid(base.componentUuid());
 raw.setComponentKey(base.componentKey());
 raw.setModuleUuid(base.moduleUuid());
 raw.setModuleUuidPath(base.moduleUuidPath());
 // fields coming from raw
 updater.setPastLine(raw, base.getLine());
 updater.setPastLocations(raw, base.getLocations());
 updater.setPastMessage(raw, base.getMessage(), changeContext);
 updater.setPastGap(raw, base.gap(), changeContext);
 updater.setPastEffort(raw, base.effort(), changeContext);
}
org.sonar.server.issueIssueFieldsSettersetPastMessage

Popular methods of IssueFieldsSetter

  • assign
  • setResolution
  • setStatus
  • setType
  • setMessage
  • setPastEffort
  • setPastLine
  • setPastSeverity
  • setSeverity
  • addComment
  • setCreationDate
  • setGap
  • setCreationDate,
  • setGap,
  • setIssueMoved,
  • setLocations,
  • setManualSeverity,
  • setNewAssignee,
  • setNewAuthor,
  • setPastGap,
  • setPastLocations

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now