Package org.apache.wicket.util.tester
Class WicketTesterExtension
- java.lang.Object
-
- org.apache.wicket.util.tester.WicketTesterExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterTestExecutionCallback
,org.junit.jupiter.api.extension.BeforeTestExecutionCallback
,org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.TestExecutionExceptionHandler
public class WicketTesterExtension extends Object implements org.junit.jupiter.api.extension.BeforeTestExecutionCallback, org.junit.jupiter.api.extension.AfterTestExecutionCallback, org.junit.jupiter.api.extension.TestExecutionExceptionHandler
ManagesWicketTester
instance- Author:
- igor
-
-
Constructor Summary
Constructors Constructor Description WicketTesterExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext context)
void
beforeTestExecution(org.junit.jupiter.api.extension.ExtensionContext context)
protected WicketTester
create()
Allows setup of the tester instanceWicketTester
getTester()
Gets the tester instance.void
handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
-
-
-
Constructor Detail
-
WicketTesterExtension
public WicketTesterExtension()
-
-
Method Detail
-
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
-
beforeTestExecution
public void beforeTestExecution(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
beforeTestExecution
in interfaceorg.junit.jupiter.api.extension.BeforeTestExecutionCallback
-
afterTestExecution
public void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
afterTestExecution
in interfaceorg.junit.jupiter.api.extension.AfterTestExecutionCallback
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable
- Specified by:
handleTestExecutionException
in interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler
- Throws:
Throwable
-
-