You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jd...@apache.org on 2007/12/02 11:53:39 UTC
svn commit: r600266 - in
/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request:
./ urlcompressing/ urlcompressing/MyPage.html urlcompressing/MyPage.java
urlcompressing/UrlCompressingWebRequestProcessorTest.java
Author: jdonnerstag
Date: Sun Dec 2 02:53:39 2007
New Revision: 600266
URL: http://svn.apache.org/viewvc?rev=600266&view=rev
Log:
added failing test case for wicket-861: NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester
something for Johan to look at
Added:
wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/
wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/
wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.html (with props)
wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.java (with props)
wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessorTest.java (with props)
Added: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.html
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.html?rev=600266&view=auto
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.html (added)
+++ wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.html Sun Dec 2 02:53:39 2007
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<body>
+ test
+</body>
+</html>
+
Propchange: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.java?rev=600266&view=auto
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.java (added)
+++ wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.java Sun Dec 2 02:53:39 2007
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.protocol.http.request.urlcompressing;
+
+import org.apache.wicket.PageParameters;
+import org.apache.wicket.markup.html.WebPage;
+
+/**
+ * @author Juergen Donnerstag
+ */
+public class MyPage extends WebPage
+{
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Construct.
+ *
+ * @param params
+ */
+ public MyPage(PageParameters params)
+ {
+ super(params);
+ }
+
+ /**
+ * Construct.
+ */
+ public MyPage()
+ {
+ super();
+ }
+}
Propchange: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/MyPage.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessorTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessorTest.java?rev=600266&view=auto
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessorTest.java (added)
+++ wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessorTest.java Sun Dec 2 02:53:39 2007
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.protocol.http.request.urlcompressing;
+
+import junit.framework.TestCase;
+
+import org.apache.wicket.request.IRequestCycleProcessor;
+import org.apache.wicket.util.tester.WicketTester;
+import org.apache.wicket.util.tester.WicketTester.DummyWebApplication;
+
+/**
+ * @author Juergen Donnerstag
+ */
+public class UrlCompressingWebRequestProcessorTest extends TestCase
+{
+ private WicketTester tester;
+
+ /**
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ tester = new WicketTester(new DummyWebApplication()
+ {
+ /**
+ * Special overwrite to have url compressing for this example.
+ */
+ protected IRequestCycleProcessor newRequestCycleProcessor()
+ {
+ return new UrlCompressingWebRequestProcessor();
+ }
+ });
+ }
+
+ /**
+ *
+ */
+ public void test1()
+ {
+ tester.startPage(MyPage.class);
+ }
+
+ /**
+ *
+ */
+ public void test2()
+ {
+ // @TODO Johan, why does this fail with a NumberException????
+ // tester.startPage(new MyPage());
+ }
+
+ /**
+ *
+ */
+ public void test3()
+ {
+ // @TODO Johan, why does this fail with a NumberException????
+// tester.startPage(new ITestPageSource()
+// {
+// private static final long serialVersionUID = 1L;
+//
+// public Page getTestPage()
+// {
+// PageParameters params = new PageParameters();
+// params.add("0", "param");
+// return new MyPage();
+// }
+// });
+ }
+}
Propchange: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebRequestProcessorTest.java
------------------------------------------------------------------------------
svn:eol-style = native