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());
}
Aggregations