this.mappingsFileSource = mappingsFileSource;
}
@Override
public void loadMappingsInto(StubMappings stubMappings) {
JsonStubMappingCreator jsonStubMappingCreator = new JsonStubMappingCreator(stubMappings);
Iterable<TextFile> mappingFiles = filter(mappingsFileSource.listFilesRecursively(), byFileExtension("json"));
for (TextFile mappingFile: mappingFiles) {
jsonStubMappingCreator.addMappingFrom(mappingFile.readContentsAsString());
}
}