jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1221470 - /jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java
Date Tue, 20 Dec 2011 20:17:05 GMT
Author: sebb
Date: Tue Dec 20 20:17:05 2011
New Revision: 1221470

URL: http://svn.apache.org/viewvc?rev=1221470&view=rev
Log:
Unnecessary casts

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java?rev=1221470&r1=1221469&r2=1221470&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java Tue
Dec 20 20:17:05 2011
@@ -285,9 +285,8 @@ public class TestCookieManager extends J
             assertNotNull(s);
             HC3CookieHandler hc3CookieHandler = (HC3CookieHandler) man.getCookieHandler();
             org.apache.commons.httpclient.Cookie[] c = 
-            		(org.apache.commons.httpclient.Cookie[]) 
             		hc3CookieHandler.getCookiesForUrl(man.getCookies(), url, 
-            				CookieManager.ALLOW_VARIABLE_COOKIES);
+            		CookieManager.ALLOW_VARIABLE_COOKIES);
             assertEquals("/sub1",c[0].getPath());
             assertFalse(c[0].isPathAttributeSpecified());
             assertEquals("/sub1",c[1].getPath());
@@ -311,9 +310,8 @@ public class TestCookieManager extends J
             assertNotNull(s);
             HC3CookieHandler hc3CookieHandler = (HC3CookieHandler) man.getCookieHandler();
             org.apache.commons.httpclient.Cookie[] c = 
-            		(org.apache.commons.httpclient.Cookie[]) 
             		hc3CookieHandler.getCookiesForUrl(man.getCookies(), url, 
-            				CookieManager.ALLOW_VARIABLE_COOKIES);
+            		CookieManager.ALLOW_VARIABLE_COOKIES);
             assertEquals("/sub1",c[0].getPath());
             assertFalse(c[0].isPathAttributeSpecified());
             assertEquals("/sub1",c[1].getPath());
@@ -339,9 +337,8 @@ public class TestCookieManager extends J
             HC3CookieHandler hc3CookieHandler = (HC3CookieHandler) man.getCookieHandler();
            
             org.apache.commons.httpclient.Cookie[] c = 
-            		(org.apache.commons.httpclient.Cookie[])
             		hc3CookieHandler.getCookiesForUrl(man.getCookies(), url, 
-            				CookieManager.ALLOW_VARIABLE_COOKIES);
+            		CookieManager.ALLOW_VARIABLE_COOKIES);
             assertEquals("/sub1",c[0].getPath());
             assertFalse(c[0].isPathAttributeSpecified());
             assertEquals("/sub1",c[1].getPath());
@@ -374,9 +371,8 @@ public class TestCookieManager extends J
             assertNull(s);
             HC3CookieHandler hc3CookieHandler = (HC3CookieHandler) man.getCookieHandler();
             org.apache.commons.httpclient.Cookie[] c = 
-            		(org.apache.commons.httpclient.Cookie[]) 
             		hc3CookieHandler.getCookiesForUrl(man.getCookies(), url, 
-            				CookieManager.ALLOW_VARIABLE_COOKIES);
+            		CookieManager.ALLOW_VARIABLE_COOKIES);
             assertEquals(0,c.length); // Cookies again ignored
         }
 



Mime
View raw message