use of com.sequenceiq.cloudbreak.api.model.InstanceGroupAdjustmentJson in project cloudbreak by hortonworks.
the class UpdateStackRequestValidatorTest method testIsValidShouldReturnTrueWhenNodeCountIsUpdated.
@Test
public void testIsValidShouldReturnTrueWhenNodeCountIsUpdated() {
UpdateStackJson updateStackJson = new UpdateStackJson();
InstanceGroupAdjustmentJson instanceGroupAdjustmentJson = new InstanceGroupAdjustmentJson();
instanceGroupAdjustmentJson.setScalingAdjustment(12);
instanceGroupAdjustmentJson.setInstanceGroup("slave_1");
updateStackJson.setInstanceGroupAdjustment(instanceGroupAdjustmentJson);
updateStackJson.setStatus(null);
boolean valid = underTest.isValid(updateStackJson, constraintValidatorContext);
assertTrue(valid);
}
Aggregations