Search in sources :

Example 1 with ClangDetectable

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

the class ClangDetectableTest method testApplicable.

@Test
public void testApplicable() {
    DetectableExecutableRunner executableRunner = null;
    List<ClangPackageManager> availablePackageManagers = new ArrayList<>(0);
    ClangExtractor clangExtractor = null;
    ClangPackageManagerRunner packageManagerRunner = null;
    ClangDetectableOptions options = new ClangDetectableOptions(false);
    DetectableEnvironment environment = MockDetectableEnvironment.empty();
    FileFinder fileFinder = MockFileFinder.withFileNamed(JSON_COMPILATION_DATABASE_FILENAME);
    ClangDetectable detectable = new ClangDetectable(environment, executableRunner, fileFinder, availablePackageManagers, clangExtractor, options, packageManagerRunner);
    assertTrue(detectable.applicable().getPassed());
}
Also used : ClangPackageManager(com.synopsys.integration.detectable.detectables.clang.packagemanager.ClangPackageManager) ClangExtractor(com.synopsys.integration.detectable.detectables.clang.ClangExtractor) DetectableExecutableRunner(com.synopsys.integration.detectable.detectable.executable.DetectableExecutableRunner) ClangPackageManagerRunner(com.synopsys.integration.detectable.detectables.clang.packagemanager.ClangPackageManagerRunner) ClangDetectable(com.synopsys.integration.detectable.detectables.clang.ClangDetectable) ArrayList(java.util.ArrayList) MockFileFinder(com.synopsys.integration.detectable.util.MockFileFinder) FileFinder(com.synopsys.integration.common.util.finder.FileFinder) ClangDetectableOptions(com.synopsys.integration.detectable.detectables.clang.ClangDetectableOptions) MockDetectableEnvironment(com.synopsys.integration.detectable.util.MockDetectableEnvironment) DetectableEnvironment(com.synopsys.integration.detectable.DetectableEnvironment) Test(org.junit.jupiter.api.Test)

Aggregations

FileFinder (com.synopsys.integration.common.util.finder.FileFinder)1 DetectableEnvironment (com.synopsys.integration.detectable.DetectableEnvironment)1 DetectableExecutableRunner (com.synopsys.integration.detectable.detectable.executable.DetectableExecutableRunner)1 ClangDetectable (com.synopsys.integration.detectable.detectables.clang.ClangDetectable)1 ClangDetectableOptions (com.synopsys.integration.detectable.detectables.clang.ClangDetectableOptions)1 ClangExtractor (com.synopsys.integration.detectable.detectables.clang.ClangExtractor)1 ClangPackageManager (com.synopsys.integration.detectable.detectables.clang.packagemanager.ClangPackageManager)1 ClangPackageManagerRunner (com.synopsys.integration.detectable.detectables.clang.packagemanager.ClangPackageManagerRunner)1 MockDetectableEnvironment (com.synopsys.integration.detectable.util.MockDetectableEnvironment)1 MockFileFinder (com.synopsys.integration.detectable.util.MockFileFinder)1 ArrayList (java.util.ArrayList)1 Test (org.junit.jupiter.api.Test)1