congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IssueFieldsSetter.setPastLine
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: SonarSource/sonarqube

@Test
public void set_past_line_has_no_effect_if_line_already_had_value() {
 issue.setLine(42);
 boolean updated = underTest.setPastLine(issue, 42);
 assertThat(updated).isFalse();
 assertThat(issue.isChanged()).isFalse();
 assertThat(issue.line()).isEqualTo(42);
 assertThat(issue.mustSendNotifications()).isFalse();
 // do not save change
 assertThat(issue.currentChange()).isNull();
}
origin: SonarSource/sonarqube

@Test
public void set_past_line() {
 issue.setLine(42);
 boolean updated = underTest.setPastLine(issue, 123);
 assertThat(updated).isTrue();
 assertThat(issue.isChanged()).isTrue();
 assertThat(issue.line()).isEqualTo(42);
 assertThat(issue.mustSendNotifications()).isFalse();
 // do not save change
 assertThat(issue.currentChange()).isNull();
}
origin: SonarSource/sonarqube

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

verify(updater).setResolution(raw, null, issueChangeContext);
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);
origin: SonarSource/sonarqube

updater.setPastLine(raw, base.getLine());
updater.setPastLocations(raw, base.getLocations());
updater.setPastMessage(raw, base.getMessage(), 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.issueIssueFieldsSettersetPastLine

Popular methods of IssueFieldsSetter

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JButton (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • CodeWhisperer alternatives
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