public class PolicyTester
extends org.junit.runners.BlockJUnit4ClassRunner
| Constructor and Description |
|---|
PolicyTester(Class<?> testClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
io.apiman.gateway.engine.beans.ServiceRequest |
createServiceRequest() |
io.apiman.gateway.engine.IEngine |
getEngine() |
protected void |
publishService(org.junit.runners.model.FrameworkMethod method)
Publish a service configured with the correct policy and policy config.
|
protected void |
retireService()
Retires the service, removing it from the engine.
|
void |
run(org.junit.runner.notification.RunNotifier notifier) |
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic PolicyTester(Class<?> testClass) throws org.junit.runners.model.InitializationError
testClass - org.junit.runners.model.InitializationErrorprotected void runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.BlockJUnit4ClassRunnerBlockJUnit4ClassRunner.runChild(org.junit.runners.model.FrameworkMethod, org.junit.runner.notification.RunNotifier)public void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>ParentRunner.run(org.junit.runner.notification.RunNotifier)protected void publishService(org.junit.runners.model.FrameworkMethod method)
method - Throwableprotected void retireService()
public io.apiman.gateway.engine.IEngine getEngine()
public io.apiman.gateway.engine.beans.ServiceRequest createServiceRequest()
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.