Search in sources :

Example 1 with PipfileLockDependencyEntry

use of com.synopsys.integration.detectable.detectables.pipenv.parse.data.PipfileLockDependencyEntry in project synopsys-detect by blackducksoftware.

the class PipfileLockParserTest method pipfileLock.

private PipfileLock pipfileLock() {
    PipfileLock pipfileLock = new PipfileLock();
    Map<String, PipfileLockDependencyEntry> dependencies = new HashMap<>();
    dependencies.put("comp1", createEntry("==1.0"));
    dependencies.put("comp2", createEntry(null));
    pipfileLock.dependencies = dependencies;
    Map<String, PipfileLockDependencyEntry> devDependencies = new HashMap<>();
    devDependencies.put("comp3", createEntry("==3.0"));
    pipfileLock.devDependencies = devDependencies;
    return pipfileLock;
}
Also used : PipfileLock(com.synopsys.integration.detectable.detectables.pipenv.parse.data.PipfileLock) HashMap(java.util.HashMap) PipfileLockDependencyEntry(com.synopsys.integration.detectable.detectables.pipenv.parse.data.PipfileLockDependencyEntry)

Example 2 with PipfileLockDependencyEntry

use of com.synopsys.integration.detectable.detectables.pipenv.parse.data.PipfileLockDependencyEntry in project synopsys-detect by blackducksoftware.

the class PipfileLockParserTest method createEntry.

private PipfileLockDependencyEntry createEntry(String version) {
    PipfileLockDependencyEntry entry = new PipfileLockDependencyEntry();
    entry.version = version;
    return entry;
}
Also used : PipfileLockDependencyEntry(com.synopsys.integration.detectable.detectables.pipenv.parse.data.PipfileLockDependencyEntry)

Aggregations

PipfileLockDependencyEntry (com.synopsys.integration.detectable.detectables.pipenv.parse.data.PipfileLockDependencyEntry)2 PipfileLock (com.synopsys.integration.detectable.detectables.pipenv.parse.data.PipfileLock)1 HashMap (java.util.HashMap)1