com.googlecode.refit.spring
Class SpringApplicationContextFixtureLoader
java.lang.Object
fit.FixtureLoader
com.googlecode.refit.spring.SpringApplicationContextFixtureLoader
public class SpringApplicationContextFixtureLoader
- extends FixtureLoader
A fixture loader which takes a Spring application context and performs dependency injection on
all fixtures, using the given context.
- Author:
- Harald Wellmann
|
Method Summary |
Fixture |
createFixture(Class<?> klass)
Creates an instance of a fixture class and performs Spring dependency injection on this
instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringApplicationContextFixtureLoader
public SpringApplicationContextFixtureLoader(org.springframework.context.ApplicationContext context)
createFixture
public Fixture createFixture(Class<?> klass)
throws InstantiationException,
IllegalAccessException
- Creates an instance of a fixture class and performs Spring dependency injection on this
instance.
- Overrides:
createFixture in class FixtureLoader
- Parameters:
fixtureClassName - name of fixture class
- Throws:
InstantiationException
IllegalAccessException
Copyright © 2011. All Rights Reserved.