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

nmalin pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 0be4e7e0e5 Fixed: Add uri shortener function (OFBIZ-13154)
0be4e7e0e5 is described below

commit 0be4e7e0e5037b8612ef064c4f217741186077b0
Author: Nicolas Malin <nicolas.ma...@nereide.fr>
AuthorDate: Tue Nov 5 17:03:43 2024 +0100

    Fixed: Add uri shortener function (OFBIZ-13154)
    
    Codenarc checkstyle error
---
 .../webapp/test/OfbizPathShortenerTests.groovy     | 24 +++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git 
a/framework/webapp/src/main/groovy/org/apache/ofbiz/webapp/test/OfbizPathShortenerTests.groovy
 
b/framework/webapp/src/main/groovy/org/apache/ofbiz/webapp/test/OfbizPathShortenerTests.groovy
index 824e3b30cb..29099b6d18 100644
--- 
a/framework/webapp/src/main/groovy/org/apache/ofbiz/webapp/test/OfbizPathShortenerTests.groovy
+++ 
b/framework/webapp/src/main/groovy/org/apache/ofbiz/webapp/test/OfbizPathShortenerTests.groovy
@@ -27,25 +27,25 @@ class OfbizPathShortenerTests extends OFBizTestCase {
         super(name)
     }
     void testComputeLongUrlToShortUrl() {
-        String longUri = 
"passwordChange?USERNAME=admin&TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxML" +
-                
"LL.eyJ1c2VyTG9naW5JZCI6Imx1Y2lsZS5wZWxsZXRpZXJAZWRsbi5vcmciLCJpc3MiOiJBcGFjaGVPRkJpeiIsImV4cCI6MTcyNTU"
 +
-                
"0MjM0OSwiaWF0IjoxNzI1NTQwNTQLLL.Rycl_L-u4ZeWkx82pWWGu7gycfsHQxIxE8zu1nQ5oueGDBeOXALL-SJzMuvSARbpxCwF9A"
 +
-                "jl4rTxgoEYuRMoHg&JavaScriptEnabled=Y&Albert=Yoda"
+        String longUri = 
'passwordChange?USERNAME=admin&TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxML' +
+                
'LL.eyJ1c2VyTG9naW5JZCI6Imx1Y2lsZS5wZWxsZXRpZXJAZWRsbi5vcmciLCJpc3MiOiJBcGFjaGVPRkJpeiIsImV4cCI6MTcyNTU'
 +
+                
'0MjM0OSwiaWF0IjoxNzI1NTQwNTQLLL.Rycl_L-u4ZeWkx82pWWGu7gycfsHQxIxE8zu1nQ5oueGDBeOXALL-SJzMuvSARbpxCwF9A'
 +
+                'jl4rTxgoEYuRMoHg&JavaScriptEnabled=Y&Albert=Yoda'
         assert OfbizPathShortener.resolveShortenedPath(this.getDelegator(), 
longUri).length() < 11
     }
     void testResolveLongUrlComputedFromShort() {
-        String longUri = 
"passwordChange?USERNAME=admin&TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxML" +
-                
"LL.eyJ1c2VyTG9naW5JZCI6Imx1Y2lsZS5wZWxsZXRpZXJAZWRsbi5vcmciLCJpc3MiOiJBcGFjaGVPRkJpeiIsImV4cCI6MTcyNTU"
 +
-                
"0MjM0OSwiaWF0IjoxNzI1NTQwNTQLLL.Rycl_L-u4ZeWkx82pWWGu7gycfsHQxIxE8zu1nQ5oueGDBeOXALL-SJzMuvSARbpxCwF9A"
 +
-                "jl4rTxgoEYuRMoHg&JavaScriptEnabled=Y"
+        String longUri = 
'passwordChange?USERNAME=admin&TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxML' +
+                
'LL.eyJ1c2VyTG9naW5JZCI6Imx1Y2lsZS5wZWxsZXRpZXJAZWRsbi5vcmciLCJpc3MiOiJBcGFjaGVPRkJpeiIsImV4cCI6MTcyNTU'
 +
+                
'0MjM0OSwiaWF0IjoxNzI1NTQwNTQLLL.Rycl_L-u4ZeWkx82pWWGu7gycfsHQxIxE8zu1nQ5oueGDBeOXALL-SJzMuvSARbpxCwF9A'
 +
+                'jl4rTxgoEYuRMoHg&JavaScriptEnabled=Y'
         String shortUri = 
OfbizPathShortener.resolveShortenedPath(this.getDelegator(), longUri)
         assert longUri == 
OfbizPathShortener.resolveOriginalPathFromShortened(this.getDelegator(), 
shortUri)
     }
     void testResolveLongUrlComputedFromShortAlreadyStored() {
-        String longUri = 
"passwordChange?USERNAME=admin&TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxML" +
-                
"LL.eyJ1c2VyTG9naW5JZCI6Imx1Y2lsZS5wZWxsZXRpZXJAZWRsbi5vcmciLCJpc3MiOiJBcGFjaGVPRkJpeiIsImV4cCI6MTcyNTU"
 +
-                
"0MjM0OSwiaWF0IjoxNzI1NTQwNTQLLL.Rycl_L-u4ZeWkx82pWWGu7gycfsHQxIxE8zu1nQ5oueGDBeOXALL-SJzMuvSARbpxCwF9A"
 +
-                "jl4rTxgoEYuRMoHg&JavaScriptEnabled=Y&And=Again"
+        String longUri = 
'passwordChange?USERNAME=admin&TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxML' +
+                
'LL.eyJ1c2VyTG9naW5JZCI6Imx1Y2lsZS5wZWxsZXRpZXJAZWRsbi5vcmciLCJpc3MiOiJBcGFjaGVPRkJpeiIsImV4cCI6MTcyNTU'
 +
+                
'0MjM0OSwiaWF0IjoxNzI1NTQwNTQLLL.Rycl_L-u4ZeWkx82pWWGu7gycfsHQxIxE8zu1nQ5oueGDBeOXALL-SJzMuvSARbpxCwF9A'
 +
+                'jl4rTxgoEYuRMoHg&JavaScriptEnabled=Y&And=Again'
         String shortUriFirst = 
OfbizPathShortener.resolveShortenedPath(this.getDelegator(),longUri)
         String shortUriSecond = 
OfbizPathShortener.resolveShortenedPath(this.getDelegator(),longUri)
         assert shortUriSecond == shortUriFirst

Reply via email to