use of com.sequenceiq.cloudbreak.api.endpoint.v4.common.ResourceStatus in project cloudbreak by hortonworks.
the class ResourceStatusConverterTest method testConvertToEntityAttributeWhenNotKnownIsReturnAsUserManaged.
@Test
public void testConvertToEntityAttributeWhenNotKnownIsReturnAsUserManaged() {
ResourceStatus resourceStatus = resourceStatusConverter.convertToEntityAttribute("not-known");
Assert.assertEquals(ResourceStatus.USER_MANAGED, resourceStatus);
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.common.ResourceStatus in project cloudbreak by hortonworks.
the class ResourceStatusConverterTest method testConvertToEntityAttributeWhenDefaultIsReturnAsDefault.
@Test
public void testConvertToEntityAttributeWhenDefaultIsReturnAsDefault() {
ResourceStatus resourceStatus = resourceStatusConverter.convertToEntityAttribute("DEFAULT");
Assert.assertEquals(ResourceStatus.DEFAULT, resourceStatus);
}
Aggregations