@ContextConfiguration(value="classpath:x-test-default-config.xml")
public abstract class AbstractXTest
extends org.springframework.test.context.testng.AbstractTestNGSpringContextTests
| Constructor and Description |
|---|
AbstractXTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterClass() |
void |
beforeClass() |
protected void |
doAfterMethod()
Test classes can override this method as an extension point to provide any additional tasks to be executed at
AfterMethod stage |
protected void |
doBeforeMethod()
Test classes can override this method as an extension point to provide any additional tasks to be executed at
BeforeMethod stage |
protected void |
doOnAfterClass()
Test classes can override this method as an extension point to provide any additional tasks to be executed at
AfterClass stage |
protected void |
doOnBeforeClass()
Test classes can override this method as an extension point to provide any additional tasks to be executed at
BeforeClass stage |
protected boolean |
doSetupBeforeMethod()
Override this method to indicate whether to execute framework setup task at
BeforeMethod stage or
BeforeClass stage. |
protected org.adroitlogic.x.logging.Logger |
getLogger()
Gets the
Logger instance for the class |
protected ServerConfig |
getServerConfig()
This method can be used to retrieve the server config instance in use
|
void |
setUp() |
void |
tearDown() |
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstanceprotected void doOnBeforeClass()
throws Exception
BeforeClass stageException - if an error occurredprotected void doBeforeMethod()
throws Exception
BeforeMethod stageException - if an error occurredprotected void doAfterMethod()
throws Exception
AfterMethod stageException - if an error occurredprotected void doOnAfterClass()
throws Exception
AfterClass stageException - if an error occurredprotected ServerConfig getServerConfig()
ServerConfigprotected final org.adroitlogic.x.logging.Logger getLogger()
Logger instance for the classLoggerprotected boolean doSetupBeforeMethod()
BeforeMethod stage or
BeforeClass stage. The setup task will perform the following sub tasks.
AfterMethod stage
or AfterClass stage.Copyright © 2016–2019 AdroitLogic. All rights reserved.