diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2021-10-13 13:18:08 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-10-13 20:03:34 +0000 |
commit | b5fbdff6d4c84c5fbc26adc5a07170fc7ba5acf4 (patch) | |
tree | ca7014faa8fbbf48dd5f150df39860726cd4b89f /sonar-core | |
parent | bd9d0d1826db23c9bacb5dd474677a3381f8fe98 (diff) | |
download | sonarqube-b5fbdff6d4c84c5fbc26adc5a07170fc7ba5acf4.tar.gz sonarqube-b5fbdff6d4c84c5fbc26adc5a07170fc7ba5acf4.zip |
SONAR-15487 added unit test for quickFixAvailable added in Issue and DefaultIssue
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java b/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java index c706525c035..f147fd6fbbb 100644 --- a/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java +++ b/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java @@ -221,4 +221,17 @@ public class DefaultIssueTest { assertThat(issue.changes()).isEmpty(); } + + @Test + public void isQuickFixAvailable_givenQuickFixAvailable_returnTrue() { + DefaultIssue defaultIssue = new DefaultIssue(); + + defaultIssue.setQuickFixAvailable(true); + + assertThat(defaultIssue.isQuickFixAvailable()).isTrue(); + + defaultIssue.setQuickFixAvailable(false); + + assertThat(defaultIssue.isQuickFixAvailable()).isFalse(); + } } |