public class SpringTestContextFixtureLoader extends FixtureLoader
ContextConfiguration, using a Spring Test Context.
For classes without a ContextConfiguration annotation, this loader defaults to the
standard FixtureLoader behaviour.| Constructor and Description |
|---|
SpringTestContextFixtureLoader() |
| Modifier and Type | Method and Description |
|---|---|
Fixture |
createFixture(Class<?> klass)
Creates an instance of a fixture class and performs Spring dependency injection if class is
annotated with
ContextConfiguration. |
getInstance, loadFixture, loadFixtureClass, setInstancepublic Fixture createFixture(Class<?> klass) throws InstantiationException, IllegalAccessException
ContextConfiguration.createFixture in class FixtureLoaderfixtureClassName - name of fixture classInstantiationExceptionIllegalAccessExceptionCopyright © 2011-2013. All Rights Reserved.