You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/01/15 20:58:29 UTC

[isis] branch master updated: ISIS-2158: fixes tests after changed behavior of WebAppContextPath

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 33533f7  ISIS-2158: fixes tests after changed behavior of WebAppContextPath
33533f7 is described below

commit 33533f74026c6c91d9916780e26e677d893983c0
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Jan 15 21:58:20 2020 +0100

    ISIS-2158: fixes tests after changed behavior of WebAppContextPath
---
 .../wicket/WebAppContextPath_setContextPath_Test.java      | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/core/config/src/test/java/org/apache/isis/core/config/viewer/wicket/WebAppContextPath_setContextPath_Test.java b/core/config/src/test/java/org/apache/isis/core/config/viewer/wicket/WebAppContextPath_setContextPath_Test.java
index 18646a7..67c0527 100644
--- a/core/config/src/test/java/org/apache/isis/core/config/viewer/wicket/WebAppContextPath_setContextPath_Test.java
+++ b/core/config/src/test/java/org/apache/isis/core/config/viewer/wicket/WebAppContextPath_setContextPath_Test.java
@@ -31,49 +31,49 @@ class WebAppContextPath_setContextPath_Test {
     void when_no_leading_slash() {
         webAppContextPath.setContextPath("abc");
 
-        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("abc");
+        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("/abc");
     }
 
     @Test
     void when_leading_slash() {
         webAppContextPath.setContextPath("/abc");
 
-        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("abc");
+        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("/abc");
     }
 
     @Test
     void when_multiple_leading_slashes() {
         webAppContextPath.setContextPath("//abc");
 
-        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("abc");
+        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("/abc");
     }
 
     @Test
     void when_no_trailing_slash() {
         webAppContextPath.setContextPath("/abc");
 
-        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("abc");
+        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("/abc");
     }
 
     @Test
     void when_trailing_slash() {
         webAppContextPath.setContextPath("/abc/");
 
-        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("abc");
+        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("/abc");
     }
 
     @Test
     void when_multiple_trailing_slashes() {
         webAppContextPath.setContextPath("/abc//");
 
-        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("abc");
+        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("/abc");
     }
 
     @Test
     void when_multiple_contains_slashes() {
         webAppContextPath.setContextPath("/abc/def/");
 
-        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("abc/def");
+        Assertions.assertThat(webAppContextPath.getContextPath()).isEqualTo("/abc/def");
     }
 
 }
\ No newline at end of file