Skip to content

Commit

Permalink
Updating the test to note the behavioural change
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed Aug 23, 2024
1 parent 2d30cfc commit 49618a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public void getRedirectUrl() throws Exception {
// Custom URL without leading slash
b.setDescription("custom my/build/console");
assertCustomConsoleUrl(r.contextPath + "/my/build/console", b);
// Custom URL with leading slash
// Custom URL with leading slash -> not supported, falls back to default
b.setDescription("custom /my/build/console");
assertCustomConsoleUrl(r.contextPath + "/my/build/console", b);
assertCustomConsoleUrl(r.contextPath + '/' + b.getUrl() + "console", b);
// Default URL is used when extensions throw exceptions.
b.setDescription("NullPointerException");
assertCustomConsoleUrl(r.contextPath + '/' + b.getUrl() + "console", b);
Expand Down

0 comments on commit 49618a0

Please sign in to comment.