/**
 * 
 */
package org.apache.wicket.util.string;

import junit.framework.TestCase;


/**
 * 
 */
public class StringsTest extends TestCase
{
	public void testStripJSessionId()
	{
		String url = "http://localhost/abc";
		assertEquals(url, Strings.stripJSessionId(url));
		assertEquals(url + "/", Strings.stripJSessionId(url + "/"));
		assertEquals(url + "?param", Strings.stripJSessionId(url + "?param"));
		assertEquals(url + "?param=a:b", Strings.stripJSessionId(url + "?param=a:b"));
		assertEquals(url + "/?param", Strings.stripJSessionId(url + "/?param"));
		assertEquals(url, Strings.stripJSessionId(url + ";jsessionid=12345"));
		assertEquals(url + "?param", Strings.stripJSessionId(url + ";jsessionid=12345?param"));
		assertEquals(url + "?param=a:b", Strings.stripJSessionId(url +
			";jsessionid=12345?param=a:b"));
	}
}

@@ -441,33 +441,33 @@
 (url + %22?param=a
-:
+;
 b%22, Strings.stri
@@ -485,33 +485,33 @@
 (url + %22?param=a
-:
+;
 b%22));%0D%0A%09%09assertE
@@ -772,17 +772,17 @@
 ?param=a
-:
+;
 b%22, Stri
@@ -837,17 +837,17 @@
 ?param=a
-:
+;
 b%22));%0D%0A%09

update to the test