use of com.synopsys.integration.detect.configuration.help.DetectArgumentState in project synopsys-detect by blackducksoftware.
the class AirGapParsedValueTests method fullAirGap.
@Test
public void fullAirGap() {
String[] args = new String[] { "-z", "FULL" };
DetectArgumentState state = parser.parseArgs(args);
AirGapType type = new AirGapTypeDecider().decide(state);
Assertions.assertEquals(AirGapType.FULL, type);
}
use of com.synopsys.integration.detect.configuration.help.DetectArgumentState in project synopsys-detect by blackducksoftware.
the class AirGapParsedValueTests method noDocker.
@Test
public void noDocker() {
String[] args = new String[] { "-z", "NO_DOCKER" };
DetectArgumentState state = parser.parseArgs(args);
AirGapType type = new AirGapTypeDecider().decide(state);
Assertions.assertEquals(AirGapType.NO_DOCKER, type);
}
use of com.synopsys.integration.detect.configuration.help.DetectArgumentState in project synopsys-detect by blackducksoftware.
the class AirGapParsedValueTests method defaultIsFull.
@Test
public void defaultIsFull() {
String[] args = new String[] { "-z" };
DetectArgumentState state = parser.parseArgs(args);
AirGapType type = new AirGapTypeDecider().decide(state);
Assertions.assertEquals(AirGapType.FULL, type);
}
use of com.synopsys.integration.detect.configuration.help.DetectArgumentState in project synopsys-detect by blackducksoftware.
the class DiagnosticDecisionTest method commandLineDecisionExtended.
@Test
void commandLineDecisionExtended() {
PropertyConfiguration propertyConfiguration = createPropertyConfiguration(false, false);
DetectArgumentState detectArgumentState = createDetectArgumentState(false, true);
DiagnosticDecision diagnosticDecision = DiagnosticDecision.decide(detectArgumentState, propertyConfiguration);
Assertions.assertTrue(diagnosticDecision.shouldCreateDiagnosticSystem());
Assertions.assertTrue(diagnosticDecision.isExtended());
}
use of com.synopsys.integration.detect.configuration.help.DetectArgumentState in project synopsys-detect by blackducksoftware.
the class DiagnosticDecisionTest method propertyDecision.
@Test
void propertyDecision() {
PropertyConfiguration propertyConfiguration = createPropertyConfiguration(true, false);
DetectArgumentState detectArgumentState = createDetectArgumentState(false, false);
DiagnosticDecision diagnosticDecision = DiagnosticDecision.decide(detectArgumentState, propertyConfiguration);
Assertions.assertTrue(diagnosticDecision.shouldCreateDiagnosticSystem());
Assertions.assertFalse(diagnosticDecision.isExtended());
}
Aggregations