use of com.sequenceiq.cloudbreak.api.endpoint.v4.clustertemplate.ClusterTemplateV4Type in project cloudbreak by hortonworks.
the class ClusterTemplateV4TypeConverterConverterTest method testConvertToEntityAttributeWheDatascienceIsReturnAsDatascience.
@Test
public void testConvertToEntityAttributeWheDatascienceIsReturnAsDatascience() {
ClusterTemplateV4Type clusterTemplateV4Type = clusterTemplateV4TypeConverter.convertToEntityAttribute("DATASCIENCE");
Assert.assertEquals(ClusterTemplateV4Type.DATASCIENCE, clusterTemplateV4Type);
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.clustertemplate.ClusterTemplateV4Type in project cloudbreak by hortonworks.
the class ClusterTemplateV4TypeConverterConverterTest method testConvertToEntityAttributeWhenNotKnownIsReturnAsOther.
@Test
public void testConvertToEntityAttributeWhenNotKnownIsReturnAsOther() {
ClusterTemplateV4Type clusterTemplateV4Type = clusterTemplateV4TypeConverter.convertToEntityAttribute("not-known");
Assert.assertEquals(ClusterTemplateV4Type.OTHER, clusterTemplateV4Type);
}
Aggregations