public class DefaultFixturesStore extends Object implements FixturesStore
YamlFixtureScanner and YamlFixtureParser for loading and parsing fixture files.| Constructor and Description |
|---|
DefaultFixturesStore()
Create a default fixture store.
|
DefaultFixturesStore(FixtureScanner fixtureScanner,
FixtureParser fixtureParser)
Create a default fixture store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLocation(Location location)
Add fixture yml files location.
|
boolean |
exists(String fixtureKey)
Check if a FixtureMap exists.
|
FixtureMap |
get(String fixtureKey)
Get a FixtureMap.
|
Set<File> |
getFixtureFiles()
Get registered fixture files
|
Set<Location> |
getFixtureLocations()
Get registered fixture locations
|
Map<String,FixtureMap> |
getFixtureMaps()
Get fixtureMap
|
FixtureMap |
reproduce(String fixtureKey)
Reproduce a FixtureMap.
|
void |
reset()
Reset a FixtureStore.
|
public DefaultFixturesStore()
public DefaultFixturesStore(FixtureScanner fixtureScanner, FixtureParser fixtureParser)
public FixtureMap get(String fixtureKey)
FixturesStoreget in interface FixturesStorefixtureKey - the fixtureKeypublic FixtureMap reproduce(String fixtureKey)
FixturesStorereproduce in interface FixturesStorefixtureKey - the fixtureKeypublic boolean exists(String fixtureKey)
FixturesStoreexists in interface FixturesStorefixtureKey - the fixtureKeypublic void addLocation(Location location)
FixturesStoreaddLocation in interface FixturesStorelocation - the locationpublic void reset()
FixturesStorereset in interface FixturesStorepublic Map<String,FixtureMap> getFixtureMaps()
Copyright © 2018. All rights reserved.