Repository: wicket Updated Branches: refs/heads/master 88897690a -> f7bb3a050
WICKET-6435 WicketTester should provide assertExists and assertNotExists methods Rename assertAbsent to assertNotExists. Make assertExists and assertNotExists 'public' Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/f7bb3a05 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/f7bb3a05 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/f7bb3a05 Branch: refs/heads/master Commit: f7bb3a05059a3b7d7af022e4772f3b332ed9ab11 Parents: 8889769 Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org> Authored: Thu Nov 8 10:17:09 2018 +0200 Committer: Martin Tzvetanov Grigorov <mgrigo...@apache.org> Committed: Thu Nov 8 10:17:09 2018 +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/f7bb3a05/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 79f596e..ce09dd9 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 @@ -1695,7 +1695,7 @@ public class BaseWicketTester return isFalse("component '" + path + "' is enabled", component.isEnabledInHierarchy()); } - protected Component assertExists(final String path) + public Component assertExists(final String path) { Component component = getComponentFromLastRenderedPage(path); if (component == null) @@ -1707,7 +1707,7 @@ public class BaseWicketTester return component; } - protected void assertAbsent(final String path) + public void assertNotExists(final String path) { Component component = getComponentFromLastRenderedPage(path, true, false); if (component != null)