Search in sources :

Example 1 with BitbakeEnvironmentParser

use of com.synopsys.integration.detectable.detectables.bitbake.parse.BitbakeEnvironmentParser in project synopsys-detect by blackducksoftware.

the class BitbakeEnvironmentParserTest method testParseEnvironment.

@Test
void testParseEnvironment() {
    BitbakeEnvironmentParser parser = new BitbakeEnvironmentParser();
    BitbakeEnvironment environment = parser.parseArchitecture(lines);
    assertTrue(environment.getMachineArch().isPresent());
    assertEquals(ARCH, environment.getMachineArch().get());
    assertTrue(environment.getLicensesDirPath().isPresent());
    assertEquals(LICENSES_DIR, environment.getLicensesDirPath().get());
}
Also used : BitbakeEnvironment(com.synopsys.integration.detectable.detectables.bitbake.data.BitbakeEnvironment) BitbakeEnvironmentParser(com.synopsys.integration.detectable.detectables.bitbake.parse.BitbakeEnvironmentParser) Test(org.junit.jupiter.api.Test)

Aggregations

BitbakeEnvironment (com.synopsys.integration.detectable.detectables.bitbake.data.BitbakeEnvironment)1 BitbakeEnvironmentParser (com.synopsys.integration.detectable.detectables.bitbake.parse.BitbakeEnvironmentParser)1 Test (org.junit.jupiter.api.Test)1