use of com.synopsys.integration.detectable.detectables.npm.packagejson.PackageJsonExtractor in project synopsys-detect by blackducksoftware.
the class PackageJsonExtractorTest method createExtractor.
private PackageJsonExtractor createExtractor(NpmDependencyType... excludedTypes) {
Gson gson = new GsonBuilder().setPrettyPrinting().create();
EnumListFilter<NpmDependencyType> npmDependencyTypeFilter = EnumListFilter.fromExcluded(excludedTypes);
return new PackageJsonExtractor(gson, new ExternalIdFactory(), npmDependencyTypeFilter);
}
use of com.synopsys.integration.detectable.detectables.npm.packagejson.PackageJsonExtractor in project synopsys-detect by blackducksoftware.
the class PackageJsonExtractorFunctionalTest method createExtractor.
private PackageJsonExtractor createExtractor(NpmDependencyType... excludedTypes) {
Gson gson = new GsonBuilder().setPrettyPrinting().create();
EnumListFilter<NpmDependencyType> npmDependencyTypeFilter = EnumListFilter.fromExcluded(excludedTypes);
return new PackageJsonExtractor(gson, new ExternalIdFactory(), npmDependencyTypeFilter);
}
Aggregations