Search in sources :

Example 6 with LinuxDistro

use of com.synopsys.integration.detectable.detectables.clang.linux.LinuxDistro in project synopsys-detect by blackducksoftware.

the class LinuxDistroTest method testNotFound.

@Test
void testNotFound() throws IOException {
    File emptyDir = Files.createTempDirectory("linuxDistroTest").toFile();
    LinuxDistro linuxDistro = new LinuxDistro();
    Optional<String> extractedLinuxDistroName = linuxDistro.extractLinuxDistroNameFromEtcDir(emptyDir);
    assertFalse(extractedLinuxDistroName.isPresent());
}
Also used : File(java.io.File) LinuxDistro(com.synopsys.integration.detectable.detectables.clang.linux.LinuxDistro) Test(org.junit.jupiter.api.Test)

Aggregations

LinuxDistro (com.synopsys.integration.detectable.detectables.clang.linux.LinuxDistro)6 Test (org.junit.jupiter.api.Test)5 ForgeChooser (com.synopsys.integration.detectable.detectables.clang.ForgeChooser)3 LinuxDistroToForgeMapper (com.synopsys.integration.detectable.detectables.clang.LinuxDistroToForgeMapper)3 File (java.io.File)3 Forge (com.synopsys.integration.bdio.model.Forge)2 ClangPackageManager (com.synopsys.integration.detectable.detectables.clang.packagemanager.ClangPackageManager)2 ClangPackageManagerInfo (com.synopsys.integration.detectable.detectables.clang.packagemanager.ClangPackageManagerInfo)1