openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1002883 - in /openwebbeans/trunk: webbeans-jsf/src/main/java/org/apache/webbeans/jsf/JSFUtil.java webbeans-jsf/src/test/java/org/apache/webbeans/jsf/test/JSFUtilTest.java webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/JSFUtil.java
Date Wed, 29 Sep 2010 22:44:15 GMT
Author: struberg
Date: Wed Sep 29 22:44:15 2010
New Revision: 1002883

URL: http://svn.apache.org/viewvc?rev=1002883&view=rev
Log:
improve JSF-plugin code

Modified:
    openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/JSFUtil.java
    openwebbeans/trunk/webbeans-jsf/src/test/java/org/apache/webbeans/jsf/test/JSFUtilTest.java
    openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/JSFUtil.java

Modified: openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/JSFUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/JSFUtil.java?rev=1002883&r1=1002882&r2=1002883&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/JSFUtil.java (original)
+++ openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/JSFUtil.java Wed
Sep 29 22:44:15 2010
@@ -135,7 +135,7 @@ public final class JSFUtil
             if(pathIndex == -1)
             {
                 result.append(buffer.substring(0,index+1));
-                result.append(remainder.substring(0));
+                result.append(remainder);
                 result.append("?");
                 result.append("cid");
                 result.append("=");

Modified: openwebbeans/trunk/webbeans-jsf/src/test/java/org/apache/webbeans/jsf/test/JSFUtilTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-jsf/src/test/java/org/apache/webbeans/jsf/test/JSFUtilTest.java?rev=1002883&r1=1002882&r2=1002883&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-jsf/src/test/java/org/apache/webbeans/jsf/test/JSFUtilTest.java
(original)
+++ openwebbeans/trunk/webbeans-jsf/src/test/java/org/apache/webbeans/jsf/test/JSFUtilTest.java
Wed Sep 29 22:44:15 2010
@@ -22,9 +22,11 @@ import org.apache.webbeans.jsf.JSFUtil;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
+import org.junit.Test;
 
 public class JSFUtilTest extends TestCase
 {
+    @Test
     public void testCidUrlUpdate()
     {
         String withQuery = "/context/file.get?name=hipo";
@@ -61,8 +63,6 @@ public class JSFUtilTest extends TestCas
         
         path = JSFUtil.getRedirectViewIdWithCid(withQueryWithContextWithPath, cid);
         Assert.assertEquals("/context?cid=1&hiho=hi#same", path);
-        
-        
     }
 
 }

Modified: openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/JSFUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/JSFUtil.java?rev=1002883&r1=1002882&r2=1002883&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/JSFUtil.java
(original)
+++ openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/JSFUtil.java
Wed Sep 29 22:44:15 2010
@@ -135,7 +135,7 @@ public final class JSFUtil
             if(pathIndex == -1)
             {
                 result.append(buffer.substring(0,index+1));
-                result.append(remainder.substring(0));
+                result.append(remainder);
                 result.append("?");
                 result.append("cid");
                 result.append("=");



Mime
View raw message