diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2021-10-22 10:38:45 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-10-25 20:03:24 +0000 |
commit | 6519110cd4f98fabf3bef46896eecbead3eb646a (patch) | |
tree | ad84a08da8ba0d590dd1a2d5e9bd2f85ff1c8a8e /server/sonar-auth-github | |
parent | 7525c90c3f489b47e902e5f8eecce2c9deab9658 (diff) | |
download | sonarqube-6519110cd4f98fabf3bef46896eecbead3eb646a.tar.gz sonarqube-6519110cd4f98fabf3bef46896eecbead3eb646a.zip |
Fix code quality issues
Diffstat (limited to 'server/sonar-auth-github')
-rw-r--r-- | server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonEmailTest.java | 2 | ||||
-rw-r--r-- | server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonTeamTest.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonEmailTest.java b/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonEmailTest.java index 47f593c0538..7a4cd36cae6 100644 --- a/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonEmailTest.java +++ b/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonEmailTest.java @@ -54,7 +54,7 @@ public class GsonEmailTest { @Test public void should_have_no_arg_constructor() { - assertThat(new GsonEmail().getEmail()).isEqualTo(""); + assertThat(new GsonEmail().getEmail()).isEmpty(); } } diff --git a/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonTeamTest.java b/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonTeamTest.java index 3d9a055689b..698e973dd03 100644 --- a/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonTeamTest.java +++ b/server/sonar-auth-github/src/test/java/org/sonar/auth/github/GsonTeamTest.java @@ -67,8 +67,8 @@ public class GsonTeamTest { @Test public void should_have_no_arg_constructor() { - assertThat(new GsonTeam().getId()).isEqualTo(""); - assertThat(new GsonTeam.GsonOrganization().getLogin()).isEqualTo(""); + assertThat(new GsonTeam().getId()).isEmpty(); + assertThat(new GsonTeam.GsonOrganization().getLogin()).isEmpty(); } } |