use of com.synopsys.integration.detectable.detectables.swift.lock.data.PackageState in project synopsys-detect by blackducksoftware.
the class PackageResolvedTransformerTest method malformedUrlTest.
@Test
void malformedUrlTest() {
ResolvedPackage malformedUrlPackage = new ResolvedPackage("MalformedUrlPackage", "data that isn't a url", new PackageState(null, "revision", "version"));
PackageResolvedTransformer transformer = new PackageResolvedTransformer();
PackageResolved packageResolved = createPackageResolved(malformedUrlPackage);
DependencyGraph dependencyGraph = transformer.transform(packageResolved);
GraphAssert graphAssert = new GraphAssert(Forge.GITHUB, dependencyGraph);
graphAssert.hasRootSize(0);
}
Aggregations