Search in sources :

Example 1 with ClusterTemplateV4Type

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

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

Aggregations

ClusterTemplateV4Type (com.sequenceiq.cloudbreak.api.endpoint.v4.clustertemplate.ClusterTemplateV4Type)2 Test (org.junit.Test)2