public class FixtureTemplateWrapper extends Object
List, Map and Object link String, Number, Date, Boolean, etc in FixtureTemplate
A source type is, generally the return type that is parsed by YamlFixtureParser.| Constructor and Description |
|---|
FixtureTemplateWrapper() |
| Modifier and Type | Method and Description |
|---|---|
static FixtureList |
wrap(List<? extends Object> source,
String fixtureName,
FixtureTemplate parent)
Wrap Map in
FixtureList |
static FixtureMap |
wrap(Map<String,? extends Object> source,
String fixtureName,
FixtureTemplate parent)
Wrap Map in
FixtureMap |
static FixtureValue |
wrap(Object source,
String fixtureName,
FixtureTemplate parent)
Wrap Map in FixtureValue
|
public static FixtureMap wrap(Map<String,? extends Object> source, String fixtureName, FixtureTemplate parent)
FixtureMapsource - source mapfixtureName - The key name of parent who hold the source.parent - The parent FixtureTemplate who hold the source.public static FixtureList wrap(List<? extends Object> source, String fixtureName, FixtureTemplate parent)
FixtureListsource - source listfixtureName - The key name of parent who hold the source.parent - The parent FixtureTemplate who hold the source.public static FixtureValue wrap(Object source, String fixtureName, FixtureTemplate parent)
source - source object that must not be List or Map.fixtureName - The key name of parent who hold the source.parent - The parent FixtureTemplate who hold the source.Copyright © 2018. All rights reserved.