use of com.synopsys.integration.detectable.detectables.cargo.model.CargoLockPackage in project synopsys-detect by blackducksoftware.
the class CargoLockPackageDataTransformerTest method transformNoVersion.
@Test
void transformNoVersion() {
CargoDependencyLineParser cargoDependencyLineParser = new CargoDependencyLineParser();
CargoLockPackageDataTransformer transformer = new CargoLockPackageDataTransformer(cargoDependencyLineParser);
CargoLockPackageData cargoLockPackageData = new CargoLockPackageData("some-name", null, null, null, Collections.emptyList());
CargoLockPackage cargoLockPackage = transformer.transform(cargoLockPackageData);
assertEquals(new NameVersion("some-name", null), cargoLockPackage.getPackageNameVersion());
assertTrue(cargoLockPackage.getDependencies().isEmpty());
}
Aggregations