You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by gs...@apache.org on 2007/10/16 01:11:05 UTC
svn commit: r584966 [4/4] - in /wicket/trunk/jdk-1.5/wicket-examples:
.settings/ src/main/java/org/apache/wicket/examples/
src/main/java/org/apache/wicket/examples/ajax/builtin/
src/main/java/org/apache/wicket/examples/ajax/builtin/modal/ src/main/java...
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/com/meterware/httpunit/ParsedHTML.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/com/meterware/httpunit/ParsedHTML.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/com/meterware/httpunit/ParsedHTML.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/com/meterware/httpunit/ParsedHTML.java Mon Oct 15 16:10:50 2007
@@ -1,24 +1,25 @@
package com.meterware.httpunit;
+
/********************************************************************************************************************
-* $Id$
-*
-* Copyright (c) 2000-2004, Russell Gold
-*
-* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
-* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
-* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
-* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-*
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions
-* of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
-* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
-* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-* DEALINGS IN THE SOFTWARE.
-*
-*******************************************************************************************************************/
+ * $Id$
+ *
+ * Copyright (c) 2000-2004, Russell Gold
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ *******************************************************************************************************************/
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
@@ -170,8 +171,7 @@
/**
- * Returns the top-level block elements found in the page in the order in
- * which they appear.
+ * Returns the top-level block elements found in the page in the order in which they appear.
*
* @return Text blocks
*/
@@ -187,8 +187,8 @@
/**
- * Returns the first text block found in the page which matches the
- * specified predicate and value.
+ * Returns the first text block found in the page which matches the specified predicate and
+ * value.
*
* @param predicate
* @param criteria
@@ -224,8 +224,7 @@
/**
- * Returns the top-level tables found in the page in the order in which they
- * appear.
+ * Returns the top-level tables found in the page in the order in which they appear.
*
* @return Tables
*/
@@ -268,8 +267,7 @@
/**
- * Returns the HTML elements with an attribute with the specified name and
- * value.
+ * Returns the HTML elements with an attribute with the specified name and value.
*
* @param name
* @param value
@@ -493,8 +491,7 @@
/**
- * If noscript node content is enabled, returns null - otherwise returns a
- * concealing element.
+ * If noscript node content is enabled, returns null - otherwise returns a concealing element.
*/
private HTMLElement toNoscriptElement(Element element)
{
@@ -856,8 +853,8 @@
private HTMLElement newControlWithoutForm(ParsedHTML parsedHTML, Element element)
{
- if (element.getNodeName().equalsIgnoreCase("button")
- && isValidNonFormButtonType(NodeUtils.getNodeAttribute(element, "type")))
+ if (element.getNodeName().equalsIgnoreCase("button") &&
+ isValidNonFormButtonType(NodeUtils.getNodeAttribute(element, "type")))
{
return parsedHTML.toButtonWithoutForm(element);
}
@@ -1213,8 +1210,8 @@
/**
- * Returns the link which contains the first image with the specified text
- * as its 'alt' attribute.
+ * Returns the link which contains the first image with the specified text as its 'alt'
+ * attribute.
*
* @param text
* @return Link
@@ -1302,8 +1299,7 @@
/**
- * Returns the first image found in the page with the specified src
- * attribute.
+ * Returns the first image found in the page with the specified src attribute.
*
* @param source
* @return Image
@@ -1323,8 +1319,7 @@
/**
- * Returns the first image found in the page with the specified alt
- * attribute.
+ * Returns the first image found in the page with the specified alt attribute.
*
* @param altText
* @return Image
@@ -1344,8 +1339,8 @@
/**
- * Returns the first table in the response which matches the specified
- * predicate and value. Will recurse into any nested tables, as needed.
+ * Returns the first table in the response which matches the specified predicate and value. Will
+ * recurse into any nested tables, as needed.
*
* @param predicate
* @param criteria
@@ -1357,8 +1352,8 @@
}
/**
- * Returns the tables in the response which match the specified predicate
- * and value. Will recurse into any nested tables, as needed.
+ * Returns the tables in the response which match the specified predicate and value. Will
+ * recurse into any nested tables, as needed.
*
* @param predicate
* @param criteria
@@ -1371,9 +1366,8 @@
/**
- * Returns the first table in the response which has the specified text as
- * the full text of its first non-blank row and non-blank column. Will
- * recurse into any nested tables, as needed.
+ * Returns the first table in the response which has the specified text as the full text of its
+ * first non-blank row and non-blank column. Will recurse into any nested tables, as needed.
*
* @param text
* @return the selected table, or null if none is found
@@ -1385,9 +1379,9 @@
/**
- * Returns the first table in the response which has the specified text as a
- * prefix of the text in its first non-blank row and non-blank column. Will
- * recurse into any nested tables, as needed.
+ * Returns the first table in the response which has the specified text as a prefix of the text
+ * in its first non-blank row and non-blank column. Will recurse into any nested tables, as
+ * needed.
*
* @param text
* @return the selected table, or null if none is found
@@ -1399,8 +1393,8 @@
/**
- * Returns the first table in the response which has the specified text as
- * its summary attribute. Will recurse into any nested tables, as needed.
+ * Returns the first table in the response which has the specified text as its summary
+ * attribute. Will recurse into any nested tables, as needed.
*
* @param summary
* @return the selected table, or null if none is found
@@ -1412,8 +1406,8 @@
/**
- * Returns the first table in the response which has the specified text as
- * its ID attribute. Will recurse into any nested tables, as needed.
+ * Returns the first table in the response which has the specified text as its ID attribute.
+ * Will recurse into any nested tables, as needed.
*
* @param ID
* @return the selected table, or null if none is found
@@ -1460,8 +1454,8 @@
{
if (_rootNode != null && rootNode != _rootNode)
{
- throw new IllegalStateException("The root node has already been defined as "
- + _rootNode + " and cannot be redefined as " + rootNode);
+ throw new IllegalStateException("The root node has already been defined as " +
+ _rootNode + " and cannot be redefined as " + rootNode);
}
_rootNode = rootNode;
_links = null;
@@ -1491,8 +1485,7 @@
/**
- * Returns the domain object model associated with this page, to be used
- * internally.
+ * Returns the domain object model associated with this page, to be used internally.
*/
Node getOriginalDOM()
{
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/AllTests.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/AllTests.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/AllTests.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/AllTests.java Mon Oct 15 16:10:50 2007
@@ -36,7 +36,6 @@
import org.apache.wicket.examples.signin2.Signin2Test;
import org.apache.wicket.util.license.ApacheLicenceHeaderTest;
-
import com.meterware.httpunit.HttpUnitOptions;
/**
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/JettyTestCaseDecorator.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/JettyTestCaseDecorator.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/JettyTestCaseDecorator.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/JettyTestCaseDecorator.java Mon Oct 15 16:10:50 2007
@@ -36,7 +36,7 @@
private Server server;
private String contextPath;
private String webappLocation;
-
+
/**
* @param test
*/
@@ -45,6 +45,7 @@
super(test);
}
+ @Override
protected void setUp() throws Exception
{
server = new Server();
@@ -79,6 +80,7 @@
super.setUp();
}
+ @Override
protected void tearDown() throws Exception
{
super.tearDown();
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/WicketWebTestCase.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/WicketWebTestCase.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/WicketWebTestCase.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/WicketWebTestCase.java Mon Oct 15 16:10:50 2007
@@ -52,7 +52,7 @@
HttpUnitOptions.setExceptionsThrownOnScriptError(false);
System.setProperty("wicket.configuration", "deployment");
-
+
TestSuite suite = new TestSuite();
suite.addTestSuite(clazz);
JettyTestCaseDecorator deco = new JettyTestCaseDecorator(suite);
@@ -129,8 +129,7 @@
}
/**
- * Assert the tag body of the tag identified by wicket:id="wicketId" matches
- * 'assertValue'
+ * Assert the tag body of the tag identified by wicket:id="wicketId" matches 'assertValue'
*
* @param wicketId
* @param assertValue
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/guestbook/GuestbookTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/guestbook/GuestbookTest.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/guestbook/GuestbookTest.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/guestbook/GuestbookTest.java Mon Oct 15 16:10:50 2007
@@ -21,7 +21,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.wicket.examples.WicketWebTestCase;
-import org.apache.wicket.examples.guestbook.GuestBook;
/**
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/hangman/HangManTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/hangman/HangManTest.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/hangman/HangManTest.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/hangman/HangManTest.java Mon Oct 15 16:10:50 2007
@@ -18,14 +18,11 @@
import java.util.Iterator;
-import org.apache.wicket.examples.WicketWebTestCase;
-import org.apache.wicket.examples.hangman.Game;
-import org.apache.wicket.examples.hangman.Letter;
-import org.apache.wicket.examples.hangman.WordGenerator;
-
import junit.framework.Assert;
import junit.framework.Test;
+import org.apache.wicket.examples.WicketWebTestCase;
+
/**
* Testcase for the <code>Game</code> class.
*
@@ -157,7 +154,7 @@
*/
public void testHangmanSuccessWebGame()
{
-
+
getTestContext().setBaseUrl("http://localhost:8098/wicket-examples");
beginAt("/hangman/?word=hangman");
@@ -174,16 +171,16 @@
assertElementPresent("guessesRemaining");
assertTextInElement("guessesRemaining", "4");
-
+
clickLink("letter_h");
- assertElementPresent("guessesRemaining");
+ assertElementPresent("guessesRemaining");
assertTextInElement("guessesRemaining", "4");
clickLink("letter_a");
clickLink("letter_n");
clickLink("letter_g");
clickLink("letter_m");
-
+
assertTextPresent("Congratulations! You guessed that the word was ");
}
@@ -211,7 +208,7 @@
// todo jwebunit doesn't really test if it is a link!
// it just finds a html element by that id, and we have one
-// assertLinkNotPresent("letter_f");
+// assertLinkNotPresent("letter_f");
clickLink("letter_x");
assertTextInElement("guessesRemaining", "3");
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/hangman/WordGeneratorTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/hangman/WordGeneratorTest.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/hangman/WordGeneratorTest.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/hangman/WordGeneratorTest.java Mon Oct 15 16:10:50 2007
@@ -38,7 +38,7 @@
private static final Log log = LogFactory.getLog(WordGeneratorTest.class);
public WicketTester tester;
-
+
/**
* Create the test case.
*
@@ -49,7 +49,7 @@
{
super(message);
}
-
+
protected void setUp() throws Exception
{
tester = new WicketTester();
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/panels/signin/CookieTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/panels/signin/CookieTest.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/panels/signin/CookieTest.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/panels/signin/CookieTest.java Mon Oct 15 16:10:50 2007
@@ -28,7 +28,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.apache.wicket.examples.panels.signin.SignInPanel;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.FormComponent;
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/panels/signin/MockPage.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/panels/signin/MockPage.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/panels/signin/MockPage.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/panels/signin/MockPage.java Mon Oct 15 16:10:50 2007
@@ -20,8 +20,7 @@
import org.apache.wicket.markup.html.WebPage;
/**
- * Just a totally do nothing page; has to be here to have any page at all for
- * the CookieTest.
+ * Just a totally do nothing page; has to be here to have any page at all for the CookieTest.
*/
public class MockPage extends WebPage
{
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/signin2/Signin2Test.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/signin2/Signin2Test.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/signin2/Signin2Test.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/examples/signin2/Signin2Test.java Mon Oct 15 16:10:50 2007
@@ -88,16 +88,14 @@
log.debug("Click 'Home'");
this.clickLinkWithText("Home");
/*
- * jWebUnit is missing assertCookieNotPresent() try { // jWebUnit does
- * not offer an assertCookieNotPresent
- * this.assertCookiePresent("signInPanel.signInForm.username");
- * assertTrue("Should have thrown an excpetion", false); } catch
- * (AssertionFailedError ex) { ; // ok }
+ * jWebUnit is missing assertCookieNotPresent() try { // jWebUnit does not offer an
+ * assertCookieNotPresent this.assertCookiePresent("signInPanel.signInForm.username");
+ * assertTrue("Should have thrown an excpetion", false); } catch (AssertionFailedError ex) { ; //
+ * ok }
*
* try { // jWebUnit does not offer an assertCookieNotPresent
- * this.assertCookiePresent("signInPanel.signInForm.password");
- * assertTrue("Should have thrown an excpetion", false); } catch
- * (AssertionFailedError ex) { ; // ok }
+ * this.assertCookiePresent("signInPanel.signInForm.password"); assertTrue("Should have
+ * thrown an excpetion", false); } catch (AssertionFailedError ex) { ; // ok }
*/
assertTitleEquals("Wicket Examples - signin2");
}
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/HelloWorld.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/HelloWorld.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/HelloWorld.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/HelloWorld.java Mon Oct 15 16:10:50 2007
@@ -19,7 +19,6 @@
import org.apache.wicket.PageParameters;
import org.apache.wicket.examples.WicketExamplePage;
import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.link.BookmarkablePageLink;
/**
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithCPWithFPTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithCPWithFPTest.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithCPWithFPTest.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithCPWithFPTest.java Mon Oct 15 16:10:50 2007
@@ -42,13 +42,14 @@
{
super(name);
}
+
/**
*
* @return Test
*/
public static Test suite()
{
- JettyTestCaseDecorator deco = (JettyTestCaseDecorator) suite(WithCPWithFPTest.class);
+ JettyTestCaseDecorator deco = (JettyTestCaseDecorator)suite(WithCPWithFPTest.class);
deco.setContextPath("/somecontext");
String basedir = System.getProperty("basedir");
String path = "";
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithCPWithoutFPTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithCPWithoutFPTest.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithCPWithoutFPTest.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithCPWithoutFPTest.java Mon Oct 15 16:10:50 2007
@@ -16,11 +16,10 @@
*/
package org.apache.wicket.filtertest;
-import org.apache.wicket.examples.JettyTestCaseDecorator;
-import org.apache.wicket.examples.WicketWebTestCase;
-
import junit.framework.Test;
+import org.apache.wicket.examples.JettyTestCaseDecorator;
+
/**
* jWebUnit test for Hello World.
*/
@@ -42,13 +41,14 @@
{
super(name);
}
+
/**
*
* @return Test
*/
public static Test suite()
{
- JettyTestCaseDecorator deco = (JettyTestCaseDecorator) suite(WithCPWithoutFPTest.class);
+ JettyTestCaseDecorator deco = (JettyTestCaseDecorator)suite(WithCPWithoutFPTest.class);
deco.setContextPath("/somecontext");
String basedir = System.getProperty("basedir");
String path = "";
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithoutCPWithFPTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithoutCPWithFPTest.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithoutCPWithFPTest.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithoutCPWithFPTest.java Mon Oct 15 16:10:50 2007
@@ -34,13 +34,14 @@
{
getTestContext().setBaseUrl("http://localhost:8098/");
}
+
/**
*
* @return Test
*/
public static Test suite()
{
- JettyTestCaseDecorator deco = (JettyTestCaseDecorator) suite(WithoutCPWithFPTest.class);
+ JettyTestCaseDecorator deco = (JettyTestCaseDecorator)suite(WithoutCPWithFPTest.class);
deco.setContextPath("");
String basedir = System.getProperty("basedir");
String path = "";
@@ -74,6 +75,7 @@
assertTitleEquals("Wicket Examples - helloworld");
assertTextInElement("message", "Message is: 'Test'");
}
+
public void testWithSlash() throws Exception
{
beginAt("/filtertest/hello/message/Test%2FWith%20a%20Slash");
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithoutCPWithoutFPTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithoutCPWithoutFPTest.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithoutCPWithoutFPTest.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/filtertest/WithoutCPWithoutFPTest.java Mon Oct 15 16:10:50 2007
@@ -34,13 +34,14 @@
{
getTestContext().setBaseUrl("http://localhost:8098/");
}
+
/**
*
* @return Test
*/
public static Test suite()
{
- JettyTestCaseDecorator deco = (JettyTestCaseDecorator) suite(WithoutCPWithoutFPTest.class);
+ JettyTestCaseDecorator deco = (JettyTestCaseDecorator)suite(WithoutCPWithoutFPTest.class);
deco.setContextPath("");
String basedir = System.getProperty("basedir");
String path = "";
@@ -74,6 +75,7 @@
assertTitleEquals("Wicket Examples - helloworld");
assertTextInElement("message", "Message is: 'Test'");
}
+
public void testWithSlash() throws Exception
{
beginAt("/hello/message/Test%2FWith%20a%20Slash");
Modified: wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java?rev=584966&r1=584965&r2=584966&view=diff
==============================================================================
--- wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java (original)
+++ wicket/trunk/jdk-1.5/wicket-examples/src/test/java/org/apache/wicket/util/license/ApacheLicenceHeaderTest.java Mon Oct 15 16:10:50 2007
@@ -16,12 +16,10 @@
*/
package org.apache.wicket.util.license;
-import org.apache.wicket.util.license.ApacheLicenseHeaderTestCase;
/**
- * Test that the license headers are in place in this project. The tests are run
- * from {@link ApacheLicenseHeaderTestCase}, but you can add project specific
- * tests here if needed.
+ * Test that the license headers are in place in this project. The tests are run from
+ * {@link ApacheLicenseHeaderTestCase}, but you can add project specific tests here if needed.
*
* @author Frank Bille Jensen (frankbille)
*/
@@ -38,9 +36,8 @@
htmlIgnore = new String[] {
/*
- * This is an example project. Therefore we'd rather not have license
- * headers in html files, because it removes the focus away from what
- * the example is about.
+ * This is an example project. Therefore we'd rather not have license headers in html files,
+ * because it removes the focus away from what the example is about.
*/
"src" };