aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java13
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();
+ }
}