Search in sources :

Example 1 with BuildConfigData

use of org.jboss.pnc.bacon.pig.impl.pnc.BuildConfigData in project bacon by project-ncl.

the class EmptyProjectBuildTest method shouldConfigureEmptyProject.

@Test
void shouldConfigureEmptyProject(@TempDir Path targetDir) {
    String suffix = init(Paths.get("src", "test", "resources", "empty"), true, Optional.empty(), targetDir);
    ImportResult importResult = PigFacade.configure(true, false);
    assertThat(importResult.getBuildGroup().getId()).isNotNull();
    assertThat(importResult.getBuildConfigs()).hasSize(2);
    assertThat(importResult.getBuildConfigs().stream().map(BuildConfigData::getName)).contains(format(emptyNameBase1, suffix), format(emptyNameBase2, suffix));
}
Also used : ImportResult(org.jboss.pnc.bacon.pig.impl.pnc.ImportResult) BuildConfigData(org.jboss.pnc.bacon.pig.impl.pnc.BuildConfigData) Test(org.junit.jupiter.api.Test)

Aggregations

BuildConfigData (org.jboss.pnc.bacon.pig.impl.pnc.BuildConfigData)1 ImportResult (org.jboss.pnc.bacon.pig.impl.pnc.ImportResult)1 Test (org.junit.jupiter.api.Test)1