use of com.sequenceiq.cloudbreak.api.model.FailurePolicyResponse in project cloudbreak by hortonworks.
the class FailurePolicyRequestToFailurePolicyConverterTest method testConvert.
@Test
public void testConvert() {
// GIVEN
// WHEN
FailurePolicyResponse result = underTest.convert(getRequest("stack/failure-policy.json"));
// THEN
assertAllFieldsNotNull(result);
}
use of com.sequenceiq.cloudbreak.api.model.FailurePolicyResponse in project cloudbreak by hortonworks.
the class FailurePolicyRequestToFailurePolicyConverterTest method testConvertWithoutThreshold.
@Test
public void testConvertWithoutThreshold() {
// GIVEN
// WHEN
FailurePolicyResponse result = underTest.convert(getRequest("stack/failure-policy-without-threshold.json"));
// THEN
assertAllFieldsNotNull(result);
}
use of com.sequenceiq.cloudbreak.api.model.FailurePolicyResponse in project cloudbreak by hortonworks.
the class FailurePolicyToFailurePolicyResponseConverterTest method testConvert.
@Test
public void testConvert() {
// GIVEN
// WHEN
FailurePolicyResponse result = underTest.convert(getSource());
// THEN
assertEquals(AdjustmentType.BEST_EFFORT, result.getAdjustmentType());
assertAllFieldsNotNull(result);
}
Aggregations