public abstract class AbstractMockServicesAwareDataLoader extends Object implements ApplicationContextAware, TestAwareDataLoader
Modifier and Type | Field and Description |
---|---|
protected ApplicationContext |
applicationContext |
protected ContextInfo |
context |
protected boolean |
initialized |
Constructor and Description |
---|
AbstractMockServicesAwareDataLoader() |
Modifier and Type | Method and Description |
---|---|
void |
afterTest()
Called after the last test was run.
|
void |
beforeTest()
Called before the next test is to be run.
|
protected abstract void |
initializeData()
Child classes implement this method to add data into the mock services.
|
boolean |
isInitialized() |
void |
setApplicationContext(ApplicationContext applicationContext) |
protected ApplicationContext applicationContext
protected boolean initialized
protected final ContextInfo context
public AbstractMockServicesAwareDataLoader()
public final void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public final void beforeTest() throws Exception
TestAwareDataLoader
beforeTest
in interface TestAwareDataLoader
Exception
protected abstract void initializeData() throws Exception
Exception
public final boolean isInitialized()
public final void afterTest() throws Exception
TestAwareDataLoader
afterTest
in interface TestAwareDataLoader
Exception
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.