Search in sources :

Example 1 with ResourceStatus

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);
}
Also used : ResourceStatus(com.sequenceiq.cloudbreak.api.endpoint.v4.common.ResourceStatus) Test(org.junit.Test)

Example 2 with 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);
}
Also used : ResourceStatus(com.sequenceiq.cloudbreak.api.endpoint.v4.common.ResourceStatus) Test(org.junit.Test)

Aggregations

ResourceStatus (com.sequenceiq.cloudbreak.api.endpoint.v4.common.ResourceStatus)2 Test (org.junit.Test)2