public class AbstractTestDelegate extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected Class |
clazz |
The class
|
boolean |
enableSecurity |
Whether security is enabled
|
String |
securityPolicyName |
The security policy name
|
| Constructor | Description |
|---|---|
AbstractTestDelegate(Class clazz) |
Create a new test delegate
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
enableTrace(String name) |
Enable trace
|
protected static AbstractTestDelegate |
getDelegate(Class clazz) |
Get the test delegate.
|
protected void |
log(String context) |
Log an event with the given context
|
void |
setUp() |
Setup callback.
|
void |
setUpLogging() |
Setup the logging
|
protected void |
setUpSecurity() |
Setup the security
|
void |
tearDown() |
Teardown.
|
void |
tearDownLogging() |
Teardown the logging
|
void |
tearDownSecurity() |
Teardown the security
|
protected Class clazz
public boolean enableSecurity
public String securityPolicyName
public AbstractTestDelegate(Class clazz)
clazz - the classprotected static AbstractTestDelegate getDelegate(Class clazz) throws Exception
clazz - the test classException - for any errorprotected void enableTrace(String name)
name - the logging contextpublic void setUp()
throws Exception
Exception - for any errorpublic void tearDown()
throws Exception
Exception - for any errorpublic void setUpLogging()
throws Exception
Exception - for any errorpublic void tearDownLogging()
throws Exception
Exception - for any errorprotected void setUpSecurity()
throws Exception
Exception - for any errorpublic void tearDownSecurity()
throws Exception
Exception - for any errorprotected void log(String context)
context - the contextCopyright © 2018 JBoss by Red Hat. All rights reserved.