diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-09 11:55:38 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-09 11:55:38 +0200 |
commit | 30d68e219bdfddc1d8a22058ff99a048d16938d1 (patch) | |
tree | d6e00e6a091ad4b52f76b8903ffb49a581ac3900 /sonar-ws-client/src | |
parent | b23a74a5f475b48d3836c30971681cf47fe179d3 (diff) | |
download | sonarqube-30d68e219bdfddc1d8a22058ff99a048d16938d1.tar.gz sonarqube-30d68e219bdfddc1d8a22058ff99a048d16938d1.zip |
Fix quality flaws
Diffstat (limited to 'sonar-ws-client/src')
-rw-r--r-- | sonar-ws-client/src/test/java/org/sonar/wsclient/issue/BulkChangeQueryTest.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/BulkChangeQueryTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/BulkChangeQueryTest.java index b764942da60..ddef62bafe8 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/BulkChangeQueryTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/BulkChangeQueryTest.java @@ -50,4 +50,20 @@ public class BulkChangeQueryTest { ); } + @Test + public void should_not_add_null_issues() { + BulkChangeQuery query = BulkChangeQuery.create() + .issues(null); + + assertThat(query.urlParams()).isEmpty(); + } + + @Test + public void should_not_add_null_actions() { + BulkChangeQuery query = BulkChangeQuery.create() + .actions(null); + + assertThat(query.urlParams()).isEmpty(); + } + } |