public class SpringFixture extends Object implements TransformableFixture, ExtractionCapableFixture
ObjectFixture using
SpringFixtureTransformer.ObjectFixture,
SpringFixtureTransformer| Constructor and Description |
|---|
SpringFixture(String context,
Class<?>... classes) |
SpringFixture(String context,
List<Class<?>> classes) |
| Modifier and Type | Method and Description |
|---|---|
SpringFixture |
addExtractorMatcher(ExtractorMatcher extractorMatcher)
Add an extractor matcher.
|
List<Class<?>> |
getClasses()
Returns the bean classes to load.
|
String |
getContext()
Returns the context file path.
|
ExtractionResult |
getExtractionResult()
Returns the extraction result.
|
Filter |
getFilter() |
void |
populateExtractionResult(List<Object> objects)
This method filter the list of transformed mappings to the transformable fixture in order for it to be able to
extract required entities.
|
void |
setFilter(Filter filter) |
public SpringFixture(String context, Class<?>... classes)
context - the path to the XML Spring file containing the entities beans to load. The
SpringFixtureTransformer expects the path to be
relative to classpath:/.classes - the classes of the beans to load. A Spring XML context file could define beans of type A
and B but the fixture could be interested to getting only beans of type B. In that
case, pass B as the list of classes to load. The beans are loaded in order.public SpringFixture(String context, List<Class<?>> classes)
context - the path to the XML Spring file containing the entities beans to load. The
SpringFixtureTransformer expects the path to be
relative to classpath:/.classes - the classes of the beans to load. A Spring XML context file could define beans of type A
and B but the fixture could be interested to getting only beans of type B. In that
case, pass B as the list of classes to load. The beans are loaded in order.public String getContext()
public List<Class<?>> getClasses()
public SpringFixture addExtractorMatcher(ExtractorMatcher extractorMatcher)
extractorMatcher - the extraction matcher to add.ExtractorMatcherpublic ExtractionResult getExtractionResult()
getExtractionResult in interface ExtractionCapableFixturepublic void populateExtractionResult(List<Object> objects)
FixtureTransformerobjects - the transformed mappings.TransformableFixture,
FixtureTransformerpublic Filter getFilter()
public void setFilter(Filter filter)
Copyright © 2014. All Rights Reserved.