org.apache.wicket.util.tester
Class WicketTesterScope
java.lang.Object
org.apache.wicket.util.tester.WicketTesterScope
- All Implemented Interfaces:
- org.junit.rules.TestRule
public class WicketTesterScope
- extends Object
- implements org.junit.rules.TestRule
Manages WicketTester
instance
- Author:
- igor
Method Summary |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
|
protected WicketTester |
create()
Allows setup of the tester instance |
WicketTester |
getTester()
Gets the tester instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WicketTesterScope
public WicketTesterScope()
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
- Specified by:
apply
in interface org.junit.rules.TestRule
create
protected WicketTester create()
- Allows setup of the tester instance
- Returns:
- tester
getTester
public WicketTester getTester()
- Gets the tester instance.
- Returns:
- tester instance or
null
if called outside the rule's scope
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.