aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-10-22 10:38:45 -0500
committersonartech <sonartech@sonarsource.com>2021-10-25 20:03:24 +0000
commit6519110cd4f98fabf3bef46896eecbead3eb646a (patch)
treead84a08da8ba0d590dd1a2d5e9bd2f85ff1c8a8e /server/sonar-webserver
parent7525c90c3f489b47e902e5f8eecce2c9deab9658 (diff)
downloadsonarqube-6519110cd4f98fabf3bef46896eecbead3eb646a.tar.gz
sonarqube-6519110cd4f98fabf3bef46896eecbead3eb646a.zip
Fix code quality issues
Diffstat (limited to 'server/sonar-webserver')
-rw-r--r--server/sonar-webserver/src/test/java/org/sonar/server/app/TomcatContextsTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-webserver/src/test/java/org/sonar/server/app/TomcatContextsTest.java b/server/sonar-webserver/src/test/java/org/sonar/server/app/TomcatContextsTest.java
index 8da153a75ad..07255ec9c55 100644
--- a/server/sonar-webserver/src/test/java/org/sonar/server/app/TomcatContextsTest.java
+++ b/server/sonar-webserver/src/test/java/org/sonar/server/app/TomcatContextsTest.java
@@ -126,12 +126,12 @@ public class TomcatContextsTest {
public void root_context_path_must_be_blank() {
props.setProperty("sonar.web.context", "/");
- assertThat(TomcatContexts.getContextPath(new Props(props))).isEqualTo("");
+ assertThat(TomcatContexts.getContextPath(new Props(props))).isEmpty();
}
@Test
public void default_context_path_is_root() {
String context = TomcatContexts.getContextPath(new Props(new Properties()));
- assertThat(context).isEqualTo("");
+ assertThat(context).isEmpty();
}
}