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

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

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

origin: SonarSource/sonarqube

public boolean setPastLocations(DefaultIssue issue, @Nullable Object previousLocations) {
 Object currentLocations = issue.getLocations();
 issue.setLocations(previousLocations);
 return setLocations(issue, currentLocations);
}
origin: SonarSource/sonarqube

@Test
public void change_locations() {
 issue.setLocations("[1-3]");
 boolean updated = underTest.setLocations(issue, "[1-4]");
 assertThat(updated).isTrue();
 assertThat(issue.getLocations().toString()).isEqualTo("[1-4]");
 assertThat(issue.currentChange()).isNull();
 assertThat(issue.mustSendNotifications()).isFalse();
}
origin: SonarSource/sonarqube

@Test
public void do_not_change_locations() {
 issue.setLocations("[1-3]");
 boolean updated = underTest.setLocations(issue, "[1-3]");
 assertThat(updated).isFalse();
 assertThat(issue.getLocations().toString()).isEqualTo("[1-3]");
 assertThat(issue.currentChange()).isNull();
 assertThat(issue.mustSendNotifications()).isFalse();
}
origin: SonarSource/sonarqube

@Test
public void set_locations_for_the_first_time() {
 issue.setLocations(null);
 boolean updated = underTest.setLocations(issue, "[1-4]");
 assertThat(updated).isTrue();
 assertThat(issue.getLocations().toString()).isEqualTo("[1-4]");
 assertThat(issue.currentChange()).isNull();
 assertThat(issue.mustSendNotifications()).isFalse();
}
origin: org.sonarsource.sonarqube/sonar-server

public boolean setPastLocations(DefaultIssue issue, @Nullable Object previousLocations) {
 Object currentLocations = issue.getLocations();
 issue.setLocations(previousLocations);
 return setLocations(issue, currentLocations);
}
org.sonar.server.issueIssueFieldsSettersetLocations

Popular methods of IssueFieldsSetter

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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