You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2015/07/09 09:14:40 UTC

wicket git commit: Simplify the error message to use AbstractLink, so that it covers other Link impls like ResourceLink and BookmarkablePageLink too which are handled too

Repository: wicket
Updated Branches:
  refs/heads/master a241db57b -> 0ac0d60cc


Simplify the error message to use AbstractLink, so that it covers other Link impls like ResourceLink and BookmarkablePageLink too which are handled too


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/0ac0d60c
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/0ac0d60c
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/0ac0d60c

Branch: refs/heads/master
Commit: 0ac0d60cc4bc6d08652779fbae3a28044f6c10ae
Parents: a241db5
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Jul 9 10:13:33 2015 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Jul 9 10:13:33 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/wicket/util/tester/BaseWicketTester.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/0ac0d60c/wicket-core/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java b/wicket-core/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java
index d073baa..049b87e 100644
--- a/wicket-core/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java
+++ b/wicket-core/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java
@@ -1980,20 +1980,19 @@ public class BaseWicketTester
 		// The link requires AJAX
 		else if (linkComponent instanceof IAjaxLink && isAjax == false) 
 		{
-			
 			fail("Link " + path + "is an IAjaxLink and will " +
 				"not be invoked when AJAX (javascript) is disabled.");	
 		}
 		else
 		{
-			fail("Link " + path + " is not a Link, AjaxLink, AjaxFallbackLink or AjaxSubmitLink");
+			fail("Link " + path + " is not an instance of AbstractLink or IAjaxLink");
 		}
 	}
 
 	/**
 	 * Submit the given form in the last rendered {@link Page}
 	 * <p>
-	 * <strong>Note</strong>: Form request parameters have to be set explicitely.
+	 * <strong>Note</strong>: Form request parameters have to be set explicitly.
 	 * 
 	 * @param form
 	 *            path to component