Improve the error message to mention the full type for better diagnosis

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

Branch: refs/heads/wicket-7.x
Commit: cf43a060dfc55c637da737cf716d9fbdb9f94fb4
Parents: bf7ff6d
Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Authored: Sat Oct 15 21:43:47 2016 +0200
Committer: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Committed: Sat Oct 15 21:43:47 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/wicket/blob/cf43a060/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 fd60c60..2f972e9 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
@@ -1642,8 +1642,8 @@ public class BaseWicketTester
        {
                Component component = assertExists(path);
 
-               return isTrue("component '" + 
Classes.simpleName(component.getClass()) + "' is not type:" +
-                       Classes.simpleName(expectedComponentClass),
+               return isTrue("component '" + 
Classes.name(component.getClass()) + "' is not of type: " +
+                       Classes.name(expectedComponentClass),
                        
expectedComponentClass.isAssignableFrom(component.getClass()));
        }
 

Reply via email to